mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-30 09:43:09 +03:00
feat(ui): implement CSimpleFontString_IsShown
This commit is contained in:
1 file changed
+10
-1
@@ -60,7 +60,16 @@ int32_t CSimpleFontString_IsVisible(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t CSimpleFontString_IsShown(lua_State* L) {
|
int32_t CSimpleFontString_IsShown(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
auto type = CSimpleFontString::GetObjectType();
|
||||||
|
auto string = static_cast<CSimpleFontString*>(FrameScript_GetObjectThis(L, type));
|
||||||
|
|
||||||
|
if (string->IsShown()) {
|
||||||
|
lua_pushnumber(L, 1.0);
|
||||||
|
} else {
|
||||||
|
lua_pushnil(L);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t CSimpleFontString_GetFontObject(lua_State* L) {
|
int32_t CSimpleFontString_GetFontObject(lua_State* L) {
|
||||||
|
|||||||
Reference in new issue
Block a user