Minimap sanity; part 1: rewrite the core radar logic

This commit is contained in:
Paul Chote
2010-07-21 23:44:23 +12:00
parent 58aed632a1
commit 78aff37fe4
4 changed files with 113 additions and 160 deletions

View File

@@ -20,7 +20,8 @@ namespace OpenRA.Widgets.Delegates
var gameRoot = r.GetWidget("INGAME_ROOT");
var optionsBG = gameRoot.GetWidget("INGAME_OPTIONS_BG");
Game.OnGameStart += () => r.OpenWindow("INGAME_ROOT");
Game.OnGameStart += () => r.OpenWindow("INGAME_ROOT");
Game.OnGameStart += () => gameRoot.GetWidget<RadarBinWidget>("INGAME_RADAR_BIN").SetWorld(Game.world);
r.GetWidget("INGAME_OPTIONS_BUTTON").OnMouseUp = mi => {
optionsBG.Visible = !optionsBG.Visible;