WIP particle editor, added tooltips to ParticlePrefab properties

This commit is contained in:
Joonas Rikkonen
2017-11-17 01:09:52 +02:00
parent 36fa61bdca
commit acfee80755
8 changed files with 218 additions and 38 deletions
@@ -70,7 +70,25 @@ namespace Barotrauma
listBox.ToolTip = value;
}
}
public override Rectangle Rect
{
get
{
return base.Rect;
}
set
{
Point moveAmount = value.Location - rect.Location;
base.Rect = value;
button.Rect = new Rectangle(button.Rect.Location + moveAmount, button.Rect.Size);
listBox.Rect = new Rectangle(listBox.Rect.Location + moveAmount, listBox.Rect.Size);
}
}
public GUIDropDown(Rectangle rect, string text, string style, GUIComponent parent = null)
: this(rect, text, style, Alignment.TopLeft, parent)
{