mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-11 00:44:13 +03:00
feat(ui): add CSimpleFrame::RunOnEnableScript
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -354,6 +354,12 @@ void CSimpleFrame::RunOnCharScript(const char* chr) {
|
||||
}
|
||||
}
|
||||
|
||||
void CSimpleFrame::RunOnEnableScript() {
|
||||
if (this->m_onEnable.luaRef && !this->m_loading) {
|
||||
this->RunScript(this->m_onEnable, 0, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
void CSimpleFrame::RunOnEnterScript(int32_t a2) {
|
||||
if (this->m_onEnter.luaRef) {
|
||||
auto L = FrameScript_GetContext();
|
||||
|
||||
@@ -139,6 +139,7 @@ class CSimpleFrame : public CScriptRegion {
|
||||
void RegisterRegion(CSimpleRegion* region);
|
||||
void RemoveFrameRegion(CSimpleRegion* region, uint32_t drawlayer);
|
||||
void RunOnCharScript(const char* chr);
|
||||
void RunOnEnableScript();
|
||||
void RunOnEnterScript(int32_t a2);
|
||||
void RunOnHideScript();
|
||||
void RunOnKeyDownScript(const char* key);
|
||||
|
||||
Reference in new issue
Block a user