Set spectator color to white & remove selector.
This commit is contained in:
@@ -137,6 +137,7 @@ namespace OpenRA.Mods.RA.Server
|
||||
{
|
||||
client.Slot = null;
|
||||
client.SpawnPoint = 0;
|
||||
client.Color = HSLColor.FromRGB(255, 255, 255);
|
||||
server.SyncLobbyInfo();
|
||||
return true;
|
||||
}},
|
||||
@@ -530,8 +531,8 @@ namespace OpenRA.Mods.RA.Server
|
||||
if (targetClient.Index != client.Index && !client.IsAdmin)
|
||||
return true;
|
||||
|
||||
// Map has disabled color changes
|
||||
if (targetClient.Slot != null && server.lobbyInfo.Slots[targetClient.Slot].LockColor)
|
||||
// Spectator or map has disabled color changes
|
||||
if (targetClient.Slot == null || server.lobbyInfo.Slots[targetClient.Slot].LockColor)
|
||||
return true;
|
||||
|
||||
var ci = parts[1].Split(',').Select(cc => int.Parse(cc)).ToArray();
|
||||
|
||||
@@ -459,7 +459,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
template = EditableSpectatorTemplate.Clone();
|
||||
|
||||
LobbyUtils.SetupEditableNameWidget(template, null, c, orderManager);
|
||||
LobbyUtils.SetupEditableColorWidget(template, null, c, orderManager, colorPreview);
|
||||
}
|
||||
// Non-editable spectator
|
||||
else
|
||||
@@ -469,7 +468,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
|
||||
LobbyUtils.SetupNameWidget(template, null, client);
|
||||
LobbyUtils.SetupKickWidget(template, null, client, orderManager);
|
||||
LobbyUtils.SetupColorWidget(template, null, client);
|
||||
}
|
||||
|
||||
LobbyUtils.SetupClientWidget(template, null, c, orderManager, true);
|
||||
|
||||
Reference in New Issue
Block a user