Host can disable spawning of certain characters

GUITickBox might not work very well because of the override of Rect, might want to look into that later
This commit is contained in:
juanjp600
2016-10-03 22:27:32 -03:00
parent e1296e4a8e
commit 1187686449
5 changed files with 83 additions and 10 deletions
+14
View File
@@ -40,6 +40,20 @@ namespace Barotrauma
}
}
public override Rectangle Rect
{
get
{
return rect;
}
set
{
box.Rect = new Rectangle(value.X,value.Y,box.Rect.Width,box.Rect.Height);
text.Rect = new Rectangle(box.Rect.Right + 10, box.Rect.Y + 2, 20, box.Rect.Height);
rect = value;
}
}
public GUITickBox(Rectangle rect, string label, Alignment alignment, GUIComponent parent)
: this(rect, label, alignment, GUI.Font, parent)
{