mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): implement CSimpleTexture_IsVisible
This commit is contained in:
parent
ba5006a4d8
commit
98ea309985
@ -97,7 +97,16 @@ int32_t CSimpleTexture_Hide(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t CSimpleTexture_IsVisible(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
auto type = CSimpleTexture::GetObjectType();
|
||||
auto texture = static_cast<CSimpleTexture*>(FrameScript_GetObjectThis(L, type));
|
||||
|
||||
if (texture->IsVisible()) {
|
||||
lua_pushnumber(L, 1.0);
|
||||
} else {
|
||||
lua_pushnil(L);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t CSimpleTexture_IsShown(lua_State* L) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user