Rename Session.Slot.LockRace
This commit is contained in:
@@ -151,7 +151,7 @@ namespace OpenRA.Network
|
||||
public bool Closed; // Host has explicitly closed this slot.
|
||||
|
||||
public bool AllowBots;
|
||||
public bool LockRace;
|
||||
public bool LockFaction;
|
||||
public bool LockColor;
|
||||
public bool LockTeam;
|
||||
public bool LockSpawn;
|
||||
|
||||
@@ -749,7 +749,7 @@ namespace OpenRA.Mods.Common.Server
|
||||
return true;
|
||||
|
||||
// Map has disabled race changes
|
||||
if (server.LobbyInfo.Slots[targetClient.Slot].LockRace)
|
||||
if (server.LobbyInfo.Slots[targetClient.Slot].LockFaction)
|
||||
return true;
|
||||
|
||||
targetClient.Faction = parts[1];
|
||||
@@ -900,7 +900,7 @@ namespace OpenRA.Mods.Common.Server
|
||||
PlayerReference = pr.Name,
|
||||
Closed = false,
|
||||
AllowBots = pr.AllowBots,
|
||||
LockRace = pr.LockFaction,
|
||||
LockFaction = pr.LockFaction,
|
||||
LockColor = pr.LockColor,
|
||||
LockTeam = pr.LockTeam,
|
||||
LockSpawn = pr.LockSpawn,
|
||||
|
||||
@@ -398,7 +398,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
Dictionary<string, LobbyFaction> factions)
|
||||
{
|
||||
var dropdown = parent.Get<DropDownButtonWidget>("FACTION");
|
||||
dropdown.IsDisabled = () => s.LockRace || orderManager.LocalClient.IsReady;
|
||||
dropdown.IsDisabled = () => s.LockFaction || orderManager.LocalClient.IsReady;
|
||||
dropdown.OnMouseDown = _ => ShowFactionDropDown(dropdown, c, orderManager, factions);
|
||||
var factionDescription = factions[c.Faction].Description;
|
||||
dropdown.GetTooltipText = () => factionDescription;
|
||||
|
||||
Reference in New Issue
Block a user