feat(ui): implement CSimpleModel_SetFogColor

This commit is contained in:
fallenoak 2025-10-10 22:09:04 -05:00
parent 5bd78b0581
commit 06e9f3bfa7
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -135,7 +135,16 @@ int32_t CSimpleModel_ReplaceIconTexture(lua_State* L) {
} }
int32_t CSimpleModel_SetFogColor(lua_State* L) { int32_t CSimpleModel_SetFogColor(lua_State* L) {
WHOA_UNIMPLEMENTED(0); auto type = CSimpleModel::GetObjectType();
auto model = static_cast<CSimpleModel*>(FrameScript_GetObjectThis(L, type));
CImVector fogColor = { 0 };
FrameScript_GetColor(L, 2, fogColor);
model->m_flags |= 0x1;
model->m_fogColor = fogColor;
return 0;
} }
int32_t CSimpleModel_GetFogColor(lua_State* L) { int32_t CSimpleModel_GetFogColor(lua_State* L) {