forked from 0ad/0ad
Don't load the Atlas DLL on startup, to improve performance.
This was SVN commit r7871.
This commit is contained in:
parent
4e58318ffc
commit
814a8722da
@ -185,22 +185,13 @@ Watch for updates or get involved in the development: http://wildfiregames.com/0
|
||||
size="40.234375% 60.15625% 65.234375% 93.4895833%"
|
||||
sprite_over="pgEditorOver"
|
||||
sprite_disabled="pgEditorDisabled"
|
||||
tooltip="Open the Atlas Scenario Editor in a new window. You can run this more reliably by starting the game with the command-line argument "-editor"."
|
||||
>
|
||||
<action on="Load"><![CDATA[
|
||||
// Disable the Editor button if the Atlas DLL is not active.
|
||||
if (Engine.AtlasIsAvailable())
|
||||
{
|
||||
this.enabled = true;
|
||||
this.tooltip = "Open the Atlas Scenario Editor in a new window. You can run this more reliably by starting the game with the command-line argument \"-editor\".";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.enabled = false;
|
||||
this.tooltip = "The Scenario Editor is not available.";
|
||||
}
|
||||
]]></action>
|
||||
<action on="Press"><![CDATA[
|
||||
Engine.RestartInAtlas();
|
||||
if (Engine.AtlasIsAvailable())
|
||||
Engine.RestartInAtlas();
|
||||
else
|
||||
messageBox(400, 200, "The scenario editor is not available or failed to load.", "Error", 2);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user