mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
rework walk
This commit is contained in:
@@ -43,6 +43,14 @@ void Application::registerLuaFunctions()
|
||||
g_lua.bindGlobalFunction("colortostring", [](const Color& v) { return Fw::tostring(v); });
|
||||
g_lua.bindGlobalFunction("sizetostring", [](const Size& v) { return Fw::tostring(v); });
|
||||
|
||||
// Event
|
||||
g_lua.registerClass<Event>();
|
||||
g_lua.bindClassMemberFunction<Event>("isCanceled", &Event::isCanceled);
|
||||
g_lua.bindClassMemberFunction<Event>("isExecuted", &Event::isExecuted);
|
||||
|
||||
// ScheduledEvent
|
||||
g_lua.registerClass<ScheduledEvent, Event>();
|
||||
|
||||
// UIWidget
|
||||
g_lua.registerClass<UIWidget>();
|
||||
g_lua.bindClassStaticFunction<UIWidget>("create", []{ return UIWidgetPtr(new UIWidget); });
|
||||
|
||||
Reference in New Issue
Block a user