refactor mouse position label hooking for Surface

This commit is contained in:
Chris Forbes
2010-11-02 11:16:30 +13:00
parent 40126c52e8
commit 4aa1fb4b86
2 changed files with 3 additions and 13 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Editor
Rules.LoadRules(Game.modData.Manifest, new Map());
surface1.AfterChange += OnMapChanged;
surface1.SetMousePositionLabel(toolStripStatusLabelMousePosition);
surface1.MousePositionChanged += s => toolStripStatusLabelMousePosition.Text = s;
}
void OnMapChanged()