mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): add CSimpleFrame::RunOnEnableScript
This commit is contained in:
parent
9fd47fccc6
commit
36817a57f8
@ -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) {
|
void CSimpleFrame::RunOnEnterScript(int32_t a2) {
|
||||||
if (this->m_onEnter.luaRef) {
|
if (this->m_onEnter.luaRef) {
|
||||||
auto L = FrameScript_GetContext();
|
auto L = FrameScript_GetContext();
|
||||||
|
|||||||
@ -139,6 +139,7 @@ class CSimpleFrame : public CScriptRegion {
|
|||||||
void RegisterRegion(CSimpleRegion* region);
|
void RegisterRegion(CSimpleRegion* region);
|
||||||
void RemoveFrameRegion(CSimpleRegion* region, uint32_t drawlayer);
|
void RemoveFrameRegion(CSimpleRegion* region, uint32_t drawlayer);
|
||||||
void RunOnCharScript(const char* chr);
|
void RunOnCharScript(const char* chr);
|
||||||
|
void RunOnEnableScript();
|
||||||
void RunOnEnterScript(int32_t a2);
|
void RunOnEnterScript(int32_t a2);
|
||||||
void RunOnHideScript();
|
void RunOnHideScript();
|
||||||
void RunOnKeyDownScript(const char* key);
|
void RunOnKeyDownScript(const char* key);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user