feat(ui): implement CSimpleFontString_SetTextColor

This commit is contained in:
fallenoak committed 2025-10-01 20:56:09 -05:00
1 parent c0efa22bdf
commit 17b38d3dc9
1 file changed
+10 -1
+10 -1
View File
@@ -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) {