diff --git a/OpenRA.Game/Traits/Player/DeveloperMode.cs b/OpenRA.Game/Traits/Player/DeveloperMode.cs index 3ebc4647b1..59f4fd76f8 100644 --- a/OpenRA.Game/Traits/Player/DeveloperMode.cs +++ b/OpenRA.Game/Traits/Player/DeveloperMode.cs @@ -86,6 +86,12 @@ namespace OpenRA.Traits if (self.World.LocalPlayer == self.Owner) Game.Settings.Debug.ShowCollisions ^= true; break; + } + case "DevGiveExploration": + { + if (self.World.LocalPlayer == self.Owner) + self.World.WorldActor.Trait().ExploreAll(self.World); + break; } } } diff --git a/OpenRA.Game/Widgets/Delegates/DeveloperModeDelegate.cs b/OpenRA.Game/Widgets/Delegates/DeveloperModeDelegate.cs index 1a2c3c3613..9642659022 100644 --- a/OpenRA.Game/Widgets/Delegates/DeveloperModeDelegate.cs +++ b/OpenRA.Game/Widgets/Delegates/DeveloperModeDelegate.cs @@ -92,6 +92,12 @@ namespace OpenRA.Widgets.Delegates { Game.IssueOrder(new Order("DevEnableTech", Game.world.LocalPlayer.PlayerActor)); return true; + }; + + devmodeBG.GetWidget("GIVE_EXPLORATION").OnMouseUp = mi => + { + Game.IssueOrder(new Order("DevGiveExploration", Game.world.LocalPlayer.PlayerActor)); + return true; }; devModeButton.IsVisible = () => { return Game.LobbyInfo.GlobalSettings.AllowCheats; }; diff --git a/mods/cnc/chrome/ingame.yaml b/mods/cnc/chrome/ingame.yaml index 49ab0bbd94..f8842eea42 100644 --- a/mods/cnc/chrome/ingame.yaml +++ b/mods/cnc/chrome/ingame.yaml @@ -264,6 +264,13 @@ Container@ROOT: Width:PARENT_RIGHT - 30 Height:20 Text:Build Everything + Button@GIVE_EXPLORATION + Id:GIVE_EXPLORATION + X:30 + Y:260 + Width:200 + Height:20 + Text: Give Exploration Background@FMVPLAYER: Id:FMVPLAYER Width:WINDOW_RIGHT diff --git a/mods/ra/chrome/ingame.yaml b/mods/ra/chrome/ingame.yaml index ff0f8dd64d..76964377ac 100644 --- a/mods/ra/chrome/ingame.yaml +++ b/mods/ra/chrome/ingame.yaml @@ -211,7 +211,7 @@ Container@INGAME_ROOT: X:(WINDOW_RIGHT - WIDTH)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2 Width:350 - Height:300 + Height:330 Visible:false Children: Label@LABEL_TITLE: @@ -270,4 +270,11 @@ Container@INGAME_ROOT: Y:230 Width:PARENT_RIGHT - 30 Height:20 - Text:Build Everything \ No newline at end of file + Text:Build Everything + Button@GIVE_EXPLORATION + Id:GIVE_EXPLORATION + X:30 + Y:260 + Width:200 + Height:20 + Text: Give Exploration \ No newline at end of file