Having a hidden child in a listbox doesn't prevent successive children from being rendered, server log can be filtered by message type

This commit is contained in:
Regalis
2017-05-09 21:02:42 +03:00
parent c2d918073e
commit d0065cdd97
3 changed files with 53 additions and 17 deletions

View File

@@ -406,7 +406,7 @@ namespace Barotrauma
private bool IsChildVisible(GUIComponent child)
{
if (child == null || !child.Visible) return false;
if (child == null) return false;
if (scrollBar.IsHorizontal)
{

View File

@@ -54,6 +54,12 @@ namespace Barotrauma
}
}
public Color TextColor
{
get { return text.TextColor; }
set { text.TextColor = value; }
}
public override Rectangle MouseRect
{
get { return box.Rect; }