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
+1 -1
View File
@@ -1057,7 +1057,7 @@ namespace Barotrauma.Networking
((Submarine)c.UserData).MD5Hash.Hash == newSub.MD5Hash.Hash) as GUITextBlock; ((Submarine)c.UserData).MD5Hash.Hash == newSub.MD5Hash.Hash) as GUITextBlock;
if (textBlock == null) continue; if (textBlock == null) continue;
textBlock.TextColor = Color.White; textBlock.TextColor = new Color(textBlock.TextColor, 1.0f);
textBlock.UserData = newSub; textBlock.UserData = newSub;
textBlock.ToolTip = newSub.Description; textBlock.ToolTip = newSub.Description;
+3 -3
View File
@@ -732,19 +732,19 @@ namespace Barotrauma
if (matchingSub == null) if (matchingSub == null)
{ {
subTextBlock.TextColor = Color.Gray; subTextBlock.TextColor = new Color(subTextBlock.TextColor, 0.5f);
subTextBlock.ToolTip = "Submarine not found in your submarine folder"; subTextBlock.ToolTip = "Submarine not found in your submarine folder";
} }
else if (matchingSub.MD5Hash.Hash != sub.MD5Hash.Hash) 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"; subTextBlock.ToolTip = "Your version of the submarine doesn't match the servers version";
} }
else else
{ {
if (subList == shuttleList || subList == shuttleList.ListBox) 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);
} }
} }