Пример #1
0
int TextObject::LuaGetProp(lua_State* ls, string& prop)
{
	if (prop == "center") lua_pushboolean( ls, IsCentered() );
	else return StaticObject::LuaGetProp(ls, prop);

	return 1;
}
Пример #2
0
void EBox::SetHeight(float height) {
	_hHint = height;
	_h = GetMinHeight();
	_w = GetMinWidth();

	if (IsCentered())
		SetBoxCenter(_center);
	UpdateChild();
}
Пример #3
0
void EBox::SetWidth(float width) {
	_wHint = width;
	_w = GetMinWidth();
	_h = GetMinHeight();

	if (IsCentered())
		SetBoxCenter(_center);
	UpdateChild();
}