Display icon while running the Editor under mono, cant test it on windows
This commit is contained in:
@@ -36,6 +36,9 @@ namespace OpenRA.Editor
|
|||||||
Rules.LoadRules(Game.modData.Manifest, new Map());
|
Rules.LoadRules(Game.modData.Manifest, new Map());
|
||||||
|
|
||||||
surface1.AfterChange += MakeDirty;
|
surface1.AfterChange += MakeDirty;
|
||||||
|
|
||||||
|
string path = Directory.GetCurrentDirectory();
|
||||||
|
Icon = new Icon(path + Path.DirectorySeparatorChar + "OpenRA.Editor" + Path.DirectorySeparatorChar + "OpenRA.Editor.Icon.ico");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MakeDirty() { dirty = true; }
|
void MakeDirty() { dirty = true; }
|
||||||
@@ -420,4 +423,4 @@ namespace OpenRA.Editor
|
|||||||
catch { }
|
catch { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user