Changeset View
Standalone View
binaries/data/mods/public/gui/session/top_panel/Counters.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<!-- This list encompasses resources and population --> | <!-- This list encompasses resources and population --> | ||||
<object size="0 0 50%-90-52 100%" name="resourceCounts"> | <object size="0 0 50%-90-52 100%" name="resourceCounts"> | ||||
<repeat count="5"> | <repeat count="5"> | ||||
<object name="resource[n]" size="0 0 89 100%" type="button" style="resourceCounter" tooltip_style="sessionToolTipBold"> | <object name="resource[n]" size="0 0 89 100%" type="button" style="resourceCounter" tooltip_style="sessionToolTipBold"> | ||||
<object size="0 -2 40 38" type="image" name="resource[n]_icon" ghost="true"/> | <object size="0 -2 40 38" type="image" name="resource[n]_icon" ghost="true"/> | ||||
<object size="34 0 100%-2 100%-2" type="text" style="resourceText" name="resource[n]_count"/> | <object size="34 0 100%-2 100%-2" type="text" style="resourceText" name="resource[n]_count"/> | ||||
<object size="0 0 32 32" type="text" style="gathererCounts" name="resource[n]_stats"/> | |||||
Freagarach: Capital and trailing dot please :) | |||||
Done Inline ActionsPlease keep lines 4 to 8 unchanged. Nescio: Please keep lines 4 to 8 unchanged. | |||||
</object> | </object> | ||||
Done Inline ActionsI would like to have the gatherers count displayed here, but I mis how to, moreover these sizes are random, please help providing nice visuals ;-) mammadori: I would like to have the gatherers count displayed here, but I mis how to, moreover these sizes… | |||||
Done Inline ActionsThese sizes aren't random, one should just understand it's xml and things inherit from each other. The size="" numbers are left, top, right, and bottom. I wonder whether it wouldn't be better to leave this file untouched and simply add information to where the "resourceText" is defined in the JS code and extend the string with a new line ("\n") and the number of gatherers. Nescio: These sizes aren't random, one should just understand it's xml and things inherit from each… | |||||
Done Inline ActionsThanks for the feedback Nescio, meanwhile I figured out how it works, check the screenshot above for the appereance of latest xml iteration of this patch. mammadori: Thanks for the feedback Nescio, meanwhile I figured out how it works, check the screenshot… | |||||
Done Inline Actionssize="0 0 32 32" Nescio: size="0 0 32 32" | |||||
</repeat> | </repeat> | ||||
</object> | </object> |
Capital and trailing dot please :)