Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/pregame/mainmenu.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<objects> | <objects> | ||||
<script file="gui/common/music.js"/> | <script file="gui/common/music.js"/> | ||||
elexis: Why are these includes needed?
(Otherwise possibly include the entire directory so that mods… | |||||
Not Done Inline ActionsI include those to conditionally enable the "continue campaign" button. wraitii: I include those to conditionally enable the "continue campaign" button. | |||||
Not Done Inline ActionsI wonder if we actually need that feature and shouldn't just lead to the selection screen. elexis: I wonder if we actually need that feature and shouldn't just lead to the selection screen.
Also… | |||||
Not Done Inline ActionsI kinda like being able to jump straight in, but it's not the most important thing. wraitii: I kinda like being able to jump straight in, but it's not the most important thing. | |||||
<script file="gui/common/functions_global_object.js"/> | <script file="gui/common/functions_global_object.js"/> | ||||
Not Done Inline Actionssame elexis: same | |||||
<script file="gui/common/functions_utility_error.js"/> | <script file="gui/common/functions_utility_error.js"/> | ||||
<script file="gui/pregame/mainmenu.js"/> | <script file="gui/pregame/mainmenu.js"/> | ||||
<script file="gui/campaign/campaign.js"/> | |||||
<script file="gui/campaign/campaign_io.js"/> | |||||
<script directory="gui/pregame/backgrounds/"/> | <script directory="gui/pregame/backgrounds/"/> | ||||
<!-- | <!-- | ||||
========================================== | ========================================== | ||||
- MAIN MENU | - MAIN MENU | ||||
========================================== | ========================================== | ||||
--> | --> | ||||
▲ Show 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | > | ||||
> | > | ||||
<translatableAttribute id="caption">Matches</translatableAttribute> | <translatableAttribute id="caption">Matches</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Click here to start a new single player game.</translatableAttribute> | <translatableAttribute id="tooltip">Click here to start a new single player game.</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
Engine.SwitchGuiPage("page_gamesetup.xml", { type: "offline" }); | Engine.SwitchGuiPage("page_gamesetup.xml", { type: "offline" }); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<object name="subMenuCampaignButton" | <object name="subMenuLoadButton" | ||||
type="button" | type="button" | ||||
style="StoneButtonFancy" | style="StoneButtonFancy" | ||||
size="0 32 100% 60" | size="0 32 100% 60" | ||||
tooltip_style="pgToolTip" | tooltip_style="pgToolTip" | ||||
enabled="false" | |||||
> | > | ||||
<translatableAttribute id="caption">Campaigns</translatableAttribute> | <translatableAttribute id="caption">Load Game</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Relive history through historical military campaigns. \[NOT YET IMPLEMENTED]</translatableAttribute> | <translatableAttribute id="tooltip">Click here to load a saved game.</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
Not Done Inline Actionstype went elexis: type went | |||||
<![CDATA[ | Engine.PushGuiPage("page_loadgame.xml", { type: "offline" }); | ||||
// Open Campaigns window. | |||||
// NOT IMPLEMENTED YET | |||||
]]> | |||||
</action> | </action> | ||||
</object> | </object> | ||||
<object name="subMenuLoadButton" | <object name="subMenuContinueCampaignButton" | ||||
type="button" | type="button" | ||||
style="StoneButtonFancy" | style="StoneButtonFancy" | ||||
size="0 64 100% 92" | size="0 64 100% 92" | ||||
tooltip_style="pgToolTip" | tooltip_style="pgToolTip" | ||||
enabled="false" | |||||
> | > | ||||
<translatableAttribute id="caption">Load Game</translatableAttribute> | <translatableAttribute id="caption">Continue Campaign</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Click here to load a saved game.</translatableAttribute> | <translatableAttribute id="tooltip">Click here to load your latest campaign.</translatableAttribute> | ||||
<action on="Press"> | |||||
loadCurrentCampaignSave(); | |||||
</action> | |||||
</object> | |||||
<object name="subMenuNewCampaignButton" | |||||
type="button" | |||||
style="StoneButtonFancy" | |||||
size="0 96 100% 124" | |||||
tooltip_style="pgToolTip" | |||||
enabled="false" | |||||
> | |||||
<translatableAttribute id="caption">New Campaign</translatableAttribute> | |||||
<translatableAttribute id="tooltip">Relive history through historical military campaigns. \[WIP]</translatableAttribute> | |||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
Engine.PushGuiPage("page_loadgame.xml", { type: "offline" }); | Engine.PushGuiPage("page_campaignsetup_simple.xml", { type: "offline" }); | ||||
Not Done Inline Actionstype went elexis: type went | |||||
Not Done Inline Actionssame elexis: same | |||||
</action> | </action> | ||||
</object> | </object> | ||||
<object name="subMenuLoadCampaignButton" | |||||
type="button" | |||||
style="StoneButtonFancy" | |||||
size="0 128 100% 156" | |||||
tooltip_style="pgToolTip" | |||||
> | |||||
<translatableAttribute id="caption">Load Campaign</translatableAttribute> | |||||
<translatableAttribute id="tooltip">Click here to resume an existing campaign.</translatableAttribute> | |||||
<action on="Press"> | |||||
closeMenu(); | |||||
Engine.PushGuiPage("page_loadcampaign.xml", { type: "offline" }); | |||||
</action> | |||||
</object> | |||||
</object> | </object> | ||||
<!-- submenuMultiplayer --> | <!-- submenuMultiplayer --> | ||||
<object name="submenuMultiplayer" | <object name="submenuMultiplayer" | ||||
type="image" | type="image" | ||||
size="0 4 100%-4 100%-4" | size="0 4 100%-4 100%-4" | ||||
tooltip_style="pgToolTip" | tooltip_style="pgToolTip" | ||||
hidden="true" | hidden="true" | ||||
▲ Show 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | > | ||||
type="button" | type="button" | ||||
size="4 36 100%-4 64" | size="4 36 100%-4 64" | ||||
tooltip_style="pgToolTip" | tooltip_style="pgToolTip" | ||||
> | > | ||||
<translatableAttribute id="caption">Single Player</translatableAttribute> | <translatableAttribute id="caption">Single Player</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Challenge the computer player to a single player match.</translatableAttribute> | <translatableAttribute id="tooltip">Challenge the computer player to a single player match.</translatableAttribute> | ||||
<action on="Press"> | <action on="Press"> | ||||
closeMenu(); | closeMenu(); | ||||
openMenu("submenuSinglePlayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 3); | openMenu("submenuSinglePlayer", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 5); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
<!-- MULTIPLAYER BUTTON --> | <!-- MULTIPLAYER BUTTON --> | ||||
<object name="menuMultiplayerButton" | <object name="menuMultiplayerButton" | ||||
style="StoneButtonFancy" | style="StoneButtonFancy" | ||||
type="button" | type="button" | ||||
size="4 68 100%-4 96" | size="4 68 100%-4 96" | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Why are these includes needed?
(Otherwise possibly include the entire directory so that mods can add new files without having to change this, D619)