int TextObject::LuaGetProp(lua_State* ls, string& prop) { if (prop == "center") lua_pushboolean( ls, IsCentered() ); else return StaticObject::LuaGetProp(ls, prop); return 1; }
void EBox::SetHeight(float height) { _hHint = height; _h = GetMinHeight(); _w = GetMinWidth(); if (IsCentered()) SetBoxCenter(_center); UpdateChild(); }
void EBox::SetWidth(float width) { _wHint = width; _w = GetMinWidth(); _h = GetMinHeight(); if (IsCentered()) SetBoxCenter(_center); UpdateChild(); }