mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): add member variables to CSimpleCheckbox
This commit is contained in:
parent
e87aff4c11
commit
b2297d96d9
@ -23,10 +23,6 @@ void CSimpleCheckbox::RegisterScriptMethods(lua_State* L) {
|
||||
FrameScript_Object::FillScriptMethodTable(L, SimpleCheckboxMethods, NUM_SIMPLE_CHECKBOX_SCRIPT_METHODS);
|
||||
}
|
||||
|
||||
CSimpleCheckbox::CSimpleCheckbox(CSimpleFrame* parent) : CSimpleButton(parent) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
int32_t CSimpleCheckbox::GetScriptMetaTable() {
|
||||
return CSimpleCheckbox::s_metatable;
|
||||
}
|
||||
|
||||
@ -15,13 +15,17 @@ class CSimpleCheckbox : public CSimpleButton {
|
||||
static void RegisterScriptMethods(lua_State* L);
|
||||
|
||||
// Member variables
|
||||
int32_t m_checked = 0;
|
||||
CSimpleTexture* m_checkedTexture = nullptr;
|
||||
CSimpleTexture* m_disabledTexture = nullptr;
|
||||
|
||||
// Virtual member functions
|
||||
virtual bool IsA(int32_t type);
|
||||
virtual int32_t GetScriptMetaTable();
|
||||
|
||||
// Member functions
|
||||
CSimpleCheckbox(CSimpleFrame* parent);
|
||||
CSimpleCheckbox(CSimpleFrame* parent)
|
||||
: CSimpleButton(parent) {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user