forked from Mirrors/openclonk
Add basement width editor property
parent
dc9b948590
commit
e015cdef8d
|
@ -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$";
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
Name=Fundament
|
||||
Description=Eine stabile Basis für Gebäude.
|
||||
Width=Breite
|
|
@ -1,2 +1,3 @@
|
|||
Name=Basement
|
||||
Description=A stable base for any building.
|
||||
Width=Width
|
Loading…
Reference in New Issue