mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
Fix regression in walk paralyze
This commit is contained in:
@@ -572,6 +572,7 @@ void Application::registerLuaFunctions()
|
||||
g_lua.registerClass<UIVerticalLayout, UIBoxLayout>();
|
||||
g_lua.bindClassStaticFunction<UIVerticalLayout>("create", [](UIWidgetPtr parent){ return UIVerticalLayoutPtr(new UIVerticalLayout(parent)); } );
|
||||
g_lua.bindClassMemberFunction<UIVerticalLayout>("setAlignBottom", &UIVerticalLayout::setAlignBottom);
|
||||
g_lua.bindClassMemberFunction<UIVerticalLayout>("isAlignBottom", &UIVerticalLayout::isAlignBottom);
|
||||
|
||||
// UIHorizontalLayout
|
||||
g_lua.registerClass<UIHorizontalLayout, UIBoxLayout>();
|
||||
|
||||
@@ -34,6 +34,7 @@ public:
|
||||
void applyStyle(const OTMLNodePtr& styleNode);
|
||||
|
||||
void setAlignBottom(bool aliginBottom) { m_alignBottom = aliginBottom; update(); }
|
||||
bool isAlignBottom() { return m_alignBottom; }
|
||||
|
||||
bool isUIVerticalLayout() { return true; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user