Progress:

- Input fields for vectors & colors in SerializableEntityEditor.
- SerializableProperty tooltips.
- GUINumberInput supports floats.
- EditingHUD for structures (atm the only editable property is the color of the sprite)
This commit is contained in:
Joonas Rikkonen
2017-11-12 20:24:11 +02:00
parent 8e556f1c76
commit f7298c241e
15 changed files with 514 additions and 130 deletions
@@ -180,6 +180,12 @@ namespace Barotrauma
}
}
public override void SetDimensions(Point size, bool expandChildren = false)
{
base.SetDimensions(size, expandChildren);
frame.SetDimensions(size, expandChildren);
}
private void UpdateChildrenRect(float deltaTime)
{
int x = rect.X, y = rect.Y;
@@ -329,7 +335,7 @@ namespace Barotrauma
public void UpdateScrollBarSize()
{
totalSize = 0;
totalSize = (int)(padding.Y + padding.W);
foreach (GUIComponent child in children)
{
if (child == frame) continue;