mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-12 09:15:01 +03:00
feat(ui): implement CSimpleTexture_IsShown
This commit is contained in:
1 file changed
+10
-1
@@ -110,7 +110,16 @@ int32_t CSimpleTexture_IsVisible(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) {
|
||||
|
||||
Reference in new issue
Block a user