Add basement width editor property

ipv6
Sven Eberhardt 2017-01-01 12:46:23 -05:00
parent dc9b948590
commit e015cdef8d
3 changed files with 13 additions and 0 deletions

View File

@ -154,6 +154,17 @@ public func CombineWith(object stick_to)
SetParent(stick_to);
}
/*-- Editor --*/
public func Definition(def, ...)
{
_inherited(def, ...);
if (!def.EditorProps) def.EditorProps = {};
def.EditorProps.width = { Name="$Width$", Set="SetWidth", Type="int", Min=8, Max=120 };
}
/*-- Properties --*/
local Name = "$Name$";

View File

@ -1,2 +1,3 @@
Name=Fundament
Description=Eine stabile Basis für Gebäude.
Width=Breite

View File

@ -1,2 +1,3 @@
Name=Basement
Description=A stable base for any building.
Width=Width