Fix handicap dropdown disabled state
This commit is contained in:
committed by
Smittytron
parent
1af2ab566e
commit
9313638997
@@ -584,7 +584,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
var dropdown = parent.Get<DropDownButtonWidget>("HANDICAP_DROPDOWN");
|
||||
dropdown.IsVisible = () => true;
|
||||
dropdown.IsDisabled = () => s.LockTeam || orderManager.LocalClient.IsReady;
|
||||
dropdown.IsDisabled = () => s.LockHandicap || orderManager.LocalClient.IsReady;
|
||||
dropdown.OnMouseDown = _ => ShowHandicapDropDown(dropdown, c, orderManager);
|
||||
|
||||
var handicapLabel = new CachedTransform<int, string>(h => $"{h}%");
|
||||
|
||||
Reference in New Issue
Block a user