WIP particle editor, added tooltips to ParticlePrefab properties
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user