Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/gamesetup.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<objects> | <objects> | ||||
<script directory="gui/common/"/> | <script directory="gui/common/"/> | ||||
<script directory="gui/gamesetup/"/> | <script directory="gui/gamesetup/"/> | ||||
<object hotkey="civinfo"> | |||||
<action on="Press"> | |||||
Engine.PushGuiPage("page_civinfo.xml", { "civ": g_CivInfo.code, "callback": "storeCivInfoPage" }); | |||||
</action> | |||||
</object> | |||||
<object hotkey="structree"> | |||||
<action on="Press"> | |||||
Engine.PushGuiPage("page_structree.xml", { "civ": g_CivInfo.code, "callback": "storeCivInfoPage" }); | |||||
</action> | |||||
</object> | |||||
<!-- Add a translucent black background to fade out the menu page --> | <!-- Add a translucent black background to fade out the menu page --> | ||||
<object type="image" style="ModernWindow" size="0 0 100% 100%"> | <object type="image" style="ModernWindow" size="0 0 100% 100%"> | ||||
<object style="TitleText" type="text" size="50%-128 4 50%+128 36"> | <object style="TitleText" type="text" size="50%-128 4 50%+128 36"> | ||||
<translatableAttribute id="caption">Match Setup</translatableAttribute> | <translatableAttribute id="caption">Match Setup</translatableAttribute> | ||||
</object> | </object> | ||||
<object type="image" style="ModernDialog" size="50%-190 50%-80 50%+190 50%+80" name="loadingWindow"> | <object type="image" style="ModernDialog" size="50%-190 50%-80 50%+190 50%+80" name="loadingWindow"> | ||||
Show All 40 Lines | <object hidden="true" name="setupWindow"> | ||||
<object name="civInfoButton" | <object name="civInfoButton" | ||||
type="button" | type="button" | ||||
style="IconButton" | style="IconButton" | ||||
sprite="iconInfoGold" | sprite="iconInfoGold" | ||||
sprite_over="iconInfoWhite" | sprite_over="iconInfoWhite" | ||||
size="85%-37 0 85%-21 16" | size="85%-37 0 85%-21 16" | ||||
> | > | ||||
<translatableAttribute id="tooltip">View civilization info</translatableAttribute> | <translatableAttribute id="tooltip">View civilization info / structure tree</translatableAttribute> | ||||
<action on="Press"><![CDATA[ | <action on="Press"> | ||||
Engine.PushGuiPage("page_civinfo.xml"); | Engine.PushGuiPage(g_CivInfo.page ? g_CivInfo.page : "page_civinfo.xml", { "civ": g_CivInfo.code, "callback": "storeCivInfoPage" }); | ||||
elexis: Could move the fallback of `g_CivInfo.page` to the top of `gamesetup.js`, no? | |||||
ffffffffAuthorUnsubmitted Not Done Inline Actionswhat top ffffffff: what top | |||||
ffffffffAuthorUnsubmitted Not Done Inline Actionsreally sorry about my answer wasn't really focused ofc yes! ffffffff: really sorry about my answer wasn't really focused
ofc yes!
:( | |||||
]]></action> | </action> | ||||
</object> | </object> | ||||
<object name="civResetButton" | <object name="civResetButton" | ||||
type="button" | type="button" | ||||
style="IconButton" | style="IconButton" | ||||
sprite="iconResetGold" | sprite="iconResetGold" | ||||
sprite_over="iconResetWhite" | sprite_over="iconResetWhite" | ||||
size="85%-16 0 85% 16" | size="85%-16 0 85% 16" | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Could move the fallback of g_CivInfo.page to the top of gamesetup.js, no?