feat(ui): implement CSimpleTexture_IsShown

This commit is contained in:
fallenoak 2026-01-27 08:26:08 -06:00
parent 98ea309985
commit 7d9173b880
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -110,7 +110,16 @@ int32_t CSimpleTexture_IsVisible(lua_State* L) {
} }
int32_t CSimpleTexture_IsShown(lua_State* L) { int32_t CSimpleTexture_IsShown(lua_State* L) {
WHOA_UNIMPLEMENTED(0); auto type = CSimpleTexture::GetObjectType();
auto texture = static_cast<CSimpleTexture*>(FrameScript_GetObjectThis(L, type));
if (texture->IsShown()) {
lua_pushnumber(L, 1.0);
} else {
lua_pushnil(L);
}
return 1;
} }
int32_t CSimpleTexture_GetTexture(lua_State* L) { int32_t CSimpleTexture_GetTexture(lua_State* L) {