Fix regression in walk paralyze

This commit is contained in:
Eduardo Bart
2012-08-09 00:51:13 -03:00
parent b5cb4e2c93
commit 10c564f90e
5 changed files with 24 additions and 13 deletions

View File

@@ -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>();

View File

@@ -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; }