Fixed vote count text overlapping with the submarine preview button in NetLobbyScreen

This commit is contained in:
Joonas Rikkonen
2018-01-26 10:36:34 +02:00
parent a1ccf501c7
commit ad18eb0db0
5 changed files with 43 additions and 28 deletions
@@ -69,7 +69,7 @@ namespace Barotrauma
GUIListBox listBox = (voteType == VoteType.Sub) ?
GameMain.NetLobbyScreen.SubList : GameMain.NetLobbyScreen.ModeList;
foreach (GUITextBlock comp in listBox.children)
foreach (GUIComponent comp in listBox.children)
{
GUITextBlock voteText = comp.FindChild("votes") as GUITextBlock;
if (voteText != null) comp.RemoveChild(voteText);