mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): implement CSimpleFontString_SetTextColor
This commit is contained in:
parent
c0efa22bdf
commit
17b38d3dc9
@ -140,7 +140,16 @@ int32_t CSimpleFontString_GetTextColor(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t CSimpleFontString_SetTextColor(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
auto type = CSimpleFontString::GetObjectType();
|
||||
auto string = static_cast<CSimpleFontString*>(FrameScript_GetObjectThis(L, type));
|
||||
|
||||
CImVector color = { 0x00, 0x00, 0x00, 0x00 };
|
||||
FrameScript_GetColor(L, 2, color);
|
||||
|
||||
string->SetVertexColor(color);
|
||||
string->m_fontableFlags &= ~FLAG_COLOR_UPDATE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t CSimpleFontString_GetShadowColor(lua_State* L) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user