Clients don't modify the colors of the texts in the netlobby sub list, only their alpha

This commit is contained in:
Regalis
2017-05-25 18:27:47 +03:00
parent 44349b97b0
commit c40c3a1a98
2 changed files with 4 additions and 4 deletions

View File

@@ -1057,7 +1057,7 @@ namespace Barotrauma.Networking
((Submarine)c.UserData).MD5Hash.Hash == newSub.MD5Hash.Hash) as GUITextBlock;
if (textBlock == null) continue;
textBlock.TextColor = Color.White;
textBlock.TextColor = new Color(textBlock.TextColor, 1.0f);
textBlock.UserData = newSub;
textBlock.ToolTip = newSub.Description;

View File

@@ -732,19 +732,19 @@ namespace Barotrauma
if (matchingSub == null)
{
subTextBlock.TextColor = Color.Gray;
subTextBlock.TextColor = new Color(subTextBlock.TextColor, 0.5f);
subTextBlock.ToolTip = "Submarine not found in your submarine folder";
}
else if (matchingSub.MD5Hash.Hash != sub.MD5Hash.Hash)
{
subTextBlock.TextColor = Color.LightGray;
subTextBlock.TextColor = new Color(subTextBlock.TextColor, 0.5f);
subTextBlock.ToolTip = "Your version of the submarine doesn't match the servers version";
}
else
{
if (subList == shuttleList || subList == shuttleList.ListBox)
{
subTextBlock.TextColor = sub.HasTag(SubmarineTag.Shuttle) ? Color.White : Color.DarkGray;
subTextBlock.TextColor = new Color(subTextBlock.TextColor, sub.HasTag(SubmarineTag.Shuttle) ? 1.0f : 0.6f);
}
}