Implement noconfirmation hotkey for deleting savegames in the save dialog. Refs ...
[0ad.git] / binaries / data / mods / public / gui / savedgames / save.xml
bloba14e0831b57ec2326ec072dbd8bed1864e18b375
1 <?xml version="1.0" encoding="utf-8"?>
3 <objects>
5         <script file="gui/common/color.js"/>
6         <script file="gui/common/functions_global_object.js" />
7         <script file="gui/common/functions_utility_loadsave.js" />
8         <script file="gui/savedgames/save.js" />
10         <!-- Add a translucent black background to fade out the page -->
11         <object type="image" z="0" sprite="ModernFade"/>
13         <object type="image" style="ModernDialog" size="50%-300 50%-200 50%+300 50%+200">
14                 <object type="image" z="0" sprite="ModernFade"/>
15                 <object type="text" style="TitleText" size="50%-128 -18 50%+128 14">
16                         <translatableAttribute id="caption">Save Game</translatableAttribute>
17                 </object>
19                 <object name="gameSelection"
20                         style="ModernList"
21                         type="list"
23                         size="24 24 100%-24 100%-124">
24                         <action on="selectionchange">
25                                 selectDescription();
26                         </action>
27                 </object>
29                 <object size="24 100%-124 100%-24 100%-100" name="descLabel" type="text" style="ModernLeftLabelText">
30                         <translatableAttribute id="caption">Description:</translatableAttribute>
31                 </object>
33                 <object name="saveGameDesc" size="24 100%-96 100%-24 100%-72" type="input" style="ModernInput">
34                         <action on="Press">saveGame();</action>
35                 </object>
37                 <object name="saveButton" type="button" size="0%+25 100%-60 33%+10 100%-32" style="StoneButton" hotkey="cancel">
38                         <translatableAttribute id="caption">Cancel</translatableAttribute>
39                         <action on="Press">closeSave(true);</action>
40                 </object>
42                 <object name="deleteGameButton" type="button" size="33%+20 100%-60 66%-15 100%-32" style="StoneButton" hotkey="session.savedgames.delete">
43                         <translatableAttribute id="caption">Delete</translatableAttribute>
44                         <action on="Press">deleteGame();</action>
45                 </object>
47                 <object type="button" style="StoneButton" size="66%-5 100%-60 100%-25 100%-32">
48                         <translatableAttribute id="caption">Save</translatableAttribute>
49                         <action on="Press">saveGame();</action>
50                 </object>
52         </object>
54 </objects>