Changeset View
Standalone View
binaries/data/mods/mod/gui/modmod/modmod.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/modmod/"/> | <script directory="gui/modmod/"/> | ||||
elexis: This includes two files with an `init` function.
One directory per GUI page separates concerns.
| |||||
Done Inline ActionsOnly a problem if someone decides to make things that aren't meant to be moddable preemptively moddable. leper: Only a problem if someone decides to make things that aren't meant to be moddable preemptively… | |||||
Done Inline ActionsModifiability: Readability: elexis: Modifiability:
GUI pages should be modifyable, even if its just for allowing them to change… | |||||
Done Inline ActionsAssuming that people would either use common sense to figure out if something is a good idea instead of having a single tool and applying that to everything, or people asking in case they aren't sure or want details was apparently a bad assumption. Then again feel free to fuck this up once I'm done with this. If people want to do something stupid to something sane I'm not going to help them do that. But as said, you can break this once I'm done with it all you want. Ah, that reminds me that I should probably rename some functions to mess up any code that includes everything for the sake of doing so. leper: Assuming that people would either use common sense to figure out if something is a good idea… | |||||
Not Done Inline ActionsAh, right, here was one of the places bad ideas were complained about. leper: Ah, right, here was one of the places bad ideas were complained about. | |||||
<object name="modmod" type="image" style="ModernWindow" size="0 0 100% 100%"> | <object name="modmod" type="image" style="ModernWindow" size="0 0 100% 100%"> | ||||
<!-- Page Title --> | <!-- Page Title --> | ||||
<object style="ModernLabelText" type="text" size="50%-128 4 50%+128 36"> | <object style="ModernLabelText" type="text" size="50%-128 4 50%+128 36"> | ||||
<translatableAttribute id="caption">Modifications</translatableAttribute> | <translatableAttribute id="caption">Modifications</translatableAttribute> | ||||
</object> | </object> | ||||
<!-- Message --> | <!-- Message --> | ||||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | <object name="modmod" type="image" style="ModernWindow" size="0 0 100% 100%"> | ||||
<!-- BUTTONS --> | <!-- BUTTONS --> | ||||
<object type="button" style="ModernButtonRed" size="16 100%-44 200 100%-16"> | <object type="button" style="ModernButtonRed" size="16 100%-44 200 100%-16"> | ||||
<translatableAttribute id="caption">Quit</translatableAttribute> | <translatableAttribute id="caption">Quit</translatableAttribute> | ||||
<action on="Press">Engine.Exit();</action> | <action on="Press">Engine.Exit();</action> | ||||
</object> | </object> | ||||
<object type="button" style="ModernButtonRed" size="100%-576 100%-44 100%-392 100%-16" hotkey="cancel"> | <object type="button" style="ModernButtonRed" size="100%-576 100%-44 100%-392 100%-16" hotkey="cancel"> | ||||
<translatableAttribute id="caption">Cancel</translatableAttribute> | <translatableAttribute id="caption">mod.io test</translatableAttribute> | ||||
<action on="Press">closePage();</action> | <action on="Press">Engine.SwitchGuiPage("page_modio.xml");</action> | ||||
Done Inline ActionsI guess adding a new button can be done even in the WIP version of the patch. Itms: I guess adding a new button can be done even in the WIP version of the patch. | |||||
Done Inline ActionsBut then it would have to be placed, and whatnot. The gui is the PoC part ;-) leper: But then it would have to be placed, and whatnot. The gui is the PoC part ;-) | |||||
</object> | </object> | ||||
<object name="saveConfigurationButton" type="button" style="ModernButtonRed" size="100%-388 100%-44 100%-204 100%-16"> | <object name="saveConfigurationButton" type="button" style="ModernButtonRed" size="100%-388 100%-44 100%-204 100%-16"> | ||||
<translatableAttribute id="caption">Save Configuration</translatableAttribute> | <translatableAttribute id="caption">Save Configuration</translatableAttribute> | ||||
<action on="Press">saveMods();</action> | <action on="Press">saveMods();</action> | ||||
</object> | </object> | ||||
<object name="startModsButton" type="button" style="ModernButtonRed" size="100%-200 100%-44 100%-16 100%-16"> | <object name="startModsButton" type="button" style="ModernButtonRed" size="100%-200 100%-44 100%-16 100%-16"> | ||||
<translatableAttribute id="caption">Start Mods</translatableAttribute> | <translatableAttribute id="caption">Start Mods</translatableAttribute> | ||||
<action on="Press">startMods();</action> | <action on="Press">startMods();</action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
</objects> | </objects> |
This includes two files with an init function.
One directory per GUI page separates concerns.