Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/summary/summary.xml
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | > | ||||
<object name="miscPanelButton" type="button" sprite="BackgroundTab" style="TabButton" size="638 92 756 120"> | <object name="miscPanelButton" type="button" sprite="BackgroundTab" style="TabButton" size="638 92 756 120"> | ||||
<action on="Press">selectPanel(this);</action> | <action on="Press">selectPanel(this);</action> | ||||
<object type="text" style="ModernLabelText" ghost="true"> | <object type="text" style="ModernLabelText" ghost="true"> | ||||
<translatableAttribute id="caption">Miscellaneous</translatableAttribute> | <translatableAttribute id="caption">Miscellaneous</translatableAttribute> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="chartsPanelButton" type="button" sprite="BackgroundTab" style="TabButton" size="762 92 880 120"> | |||||
<action on="Press">selectPanel(this);</action> | |||||
<object type="text" style="ModernLabelText" ghost="true"> | |||||
<translatableAttribute id="caption">Charts</translatableAttribute> | |||||
</object> | |||||
</object> | |||||
<object name="generalPanel" type="image" sprite="ForegroundBody" size="20 120 100%-20 100%-54"> | <object name="generalPanel" type="image" sprite="ForegroundBody" size="20 120 100%-20 100%-54"> | ||||
<object size="0 0 100% 100%-50"> | <object size="0 0 100% 100%-50"> | ||||
<object name="playerNameHeading" type="text" style="ModernLeftTabLabelText"> | <object name="playerNameHeading" type="text" style="ModernLeftTabLabelText"> | ||||
<translatableAttribute id="caption">Player name</translatableAttribute> | <translatableAttribute id="caption">Player name</translatableAttribute> | ||||
</object> | </object> | ||||
<repeat var="x" count="9"> | <repeat var="x" count="9"> | ||||
<object name="titleHeading[x]" type="text" style="ModernTabLabelText"> | <object name="titleHeading[x]" type="text" style="ModernTabLabelText"> | ||||
</object> | </object> | ||||
Show All 37 Lines | <object name="generalPanel" type="image" sprite="ForegroundBody" size="20 120 100%-20 100%-54"> | ||||
<repeat var="x" count="9"> | <repeat var="x" count="9"> | ||||
<object name="valueData[n][x]" type="text" style="ModernTabLabelText"> | <object name="valueData[n][x]" type="text" style="ModernTabLabelText"> | ||||
</object> | </object> | ||||
</repeat> | </repeat> | ||||
</object> | </object> | ||||
</repeat> | </repeat> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="chartsPanel" type="image" sprite="ForegroundBody" size="20 120 100%-20 100%-54"> | |||||
<object type="text" style="ModernLeftLabelText" size="16 6 160 26"> | |||||
<translatableAttribute id="caption">Category:</translatableAttribute> | |||||
</object> | |||||
<object name="chart1CategorySelection" | |||||
elexis: 1 and 2 are bad names, "left" and "right" would be more readable.
Instead, avoid all the… | |||||
Done Inline Actionsbump elexis: bump | |||||
Done Inline ActionsLooks MUCH better! elexis: Looks MUCH better! | |||||
type="dropdown" | |||||
style="ModernDropDown" | |||||
size="20 28 160 52"> | |||||
<translatableAttribute id="tooltip">Category</translatableAttribute> | |||||
</object> | |||||
<object type="text" style="ModernLeftLabelText" size="50%+16 6 50%+160 26"> | |||||
<translatableAttribute id="caption">Category:</translatableAttribute> | |||||
</object> | |||||
<object name="chart2CategorySelection" | |||||
type="dropdown" | |||||
style="ModernDropDown" | |||||
size="50%+20 28 50%+160 52"> | |||||
<translatableAttribute id="tooltip">Category</translatableAttribute> | |||||
</object> | |||||
<object type="text" style="ModernLeftLabelText" size="166 6 310 26"> | |||||
<translatableAttribute id="caption">Value:</translatableAttribute> | |||||
</object> | |||||
<object name="chart1ValueSelection" | |||||
type="dropdown" | |||||
style="ModernDropDown" | |||||
size="170 28 310 52"> | |||||
<translatableAttribute id="tooltip">Value</translatableAttribute> | |||||
</object> | |||||
<object type="text" style="ModernLeftLabelText" size="50%+166 6 50%+310 26"> | |||||
<translatableAttribute id="caption">Value:</translatableAttribute> | |||||
</object> | |||||
Done Inline ActionsThose strings sound like transifex people would report them for ambiguity, so should add a translation comment or context elexis: Those strings sound like transifex people would report them for ambiguity, so should add a… | |||||
<object name="chart2ValueSelection" | |||||
type="dropdown" | |||||
style="ModernDropDown" | |||||
size="50%+170 28 50%+310 52"> | |||||
<translatableAttribute id="tooltip">Value</translatableAttribute> | |||||
</object> | |||||
<object name="chart1TypeLabel" type="text" style="ModernLeftLabelText" size="316 6 460 26"> | |||||
<translatableAttribute id="caption">Type:</translatableAttribute> | |||||
</object> | |||||
<object name="chart1TypeSelection" | |||||
type="dropdown" | |||||
style="ModernDropDown" | |||||
hidden="true" | |||||
size="320 28 460 52"> | |||||
<translatableAttribute id="tooltip">Type</translatableAttribute> | |||||
</object> | |||||
<object name="chart2TypeLabel" type="text" style="ModernLeftLabelText" size="50%+316 6 50%+460 26"> | |||||
<translatableAttribute id="caption">Type:</translatableAttribute> | |||||
</object> | |||||
<object name="chart2TypeSelection" | |||||
type="dropdown" | |||||
style="ModernDropDown" | |||||
hidden="true" | |||||
size="50%+320 28 50%+460 52"> | |||||
<translatableAttribute id="tooltip">Type</translatableAttribute> | |||||
</object> | |||||
<object type="image" sprite="color: 255 255 255 20" size="15 75 50%-10 100%-35"/> | |||||
<object name="z" type="chart" size="20 80 50%-15 100%-40"/> | |||||
<object type="image" sprite="color: 255 255 255 20" size="50%+10 75 100%-15 100%-35"/> | |||||
<object name="chart2" type="chart" size="50%+15 80 100%-20 100%-40"/> | |||||
<object name="chartLegend" type="text" style="ModernLabelText" size="15 100%-35 100%-15 100%-5"/> | |||||
</object> | |||||
<object type="button" name="replayButton" style="ModernButtonRed" size="100%-310 100%-48 100%-170 100%-20"> | <object type="button" name="replayButton" style="ModernButtonRed" size="100%-310 100%-48 100%-170 100%-20"> | ||||
<translatableAttribute id="caption">Replay</translatableAttribute> | <translatableAttribute id="caption">Replay</translatableAttribute> | ||||
<action on="Press">confirmStartReplay();</action> | <action on="Press">confirmStartReplay();</action> | ||||
</object> | </object> | ||||
<object type="button" style="ModernButtonRed" size="100%-160 100%-48 100%-20 100%-20"> | <object type="button" style="ModernButtonRed" size="100%-160 100%-48 100%-20 100%-20"> | ||||
<translatableAttribute id="caption">Continue</translatableAttribute> | <translatableAttribute id="caption">Continue</translatableAttribute> | ||||
<action on="Press">continueButton();</action> | <action on="Press">continueButton();</action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
</objects> | </objects> |
Wildfire Games · Phabricator
1 and 2 are bad names, "left" and "right" would be more readable.
Instead, avoid all the duplication by using 'count="..."' and change the position from JS