Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/summary/summary.xml
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | <object name="chartsPanel" type="image" sprite="ModernTabHorizontalFrame" size="20 120 100%-20 100%-54"> | ||||
<object type="image" sprite="color: 255 255 255 20" size="0 75 100% 100%"/> | <object type="image" sprite="color: 255 255 255 20" size="0 75 100% 100%"/> | ||||
<object name="chart[k]" type="chart" style="ModernChart" format_x="DURATION_SHORT" format_y="INTEGER" size="5 80 100%-5 100%-25"/> | <object name="chart[k]" type="chart" style="ModernChart" format_x="DURATION_SHORT" format_y="INTEGER" size="5 80 100%-5 100%-25"/> | ||||
<object name="chart[k]XAxisLabel" type="text" style="ModernLabelText" size="5 100%-25 100%-5 100%-5"/> | <object name="chart[k]XAxisLabel" type="text" style="ModernLabelText" size="5 100%-25 100%-5 100%-5"/> | ||||
</object> | </object> | ||||
</repeat> | </repeat> | ||||
<object name="chartLegend" type="text" style="ModernLabelText" size="15 100%-35 100%-15 100%-5"/> | <object name="chartLegend" type="text" style="ModernLabelText" size="15 100%-35 100%-15 100%-5"/> | ||||
<object name="toggleTeam" type="button" style="ModernButtonRed" size="0 100%+6 140 100%+34"> | |||||
<translatableAttribute id="caption">Show Teams</translatableAttribute> | |||||
<action on="Press"> | |||||
Stan: In js? | |||||
Done Inline ActionsFor what benefit? Imarok: For what benefit? | |||||
Done Inline ActionsSeparation of concerns? Stan: Separation of concerns? | |||||
Done Inline ActionsSo you want to replace this three calls with one call (doesn't seem worth it) or assign the onPress function in js (I don't really see the benefit for such static case). Imarok: So you want to replace this three calls with one call (doesn't seem worth it) or assign the… | |||||
toggleTeamCharts(); | |||||
</action> | |||||
</object> | |||||
</object> | </object> | ||||
<!-- View Lobby Button --> | <!-- View Lobby Button --> | ||||
<object name="lobbyButton" | <object name="lobbyButton" | ||||
type="button" | type="button" | ||||
sprite="iconBubbleGold" | sprite="iconBubbleGold" | ||||
sprite_over="iconBubbleWhite" | sprite_over="iconBubbleWhite" | ||||
size="100%-336 100%-45 100%-320 100%-29" | size="100%-336 100%-45 100%-320 100%-29" | ||||
Show All 19 Lines |
Wildfire Games · Phabricator
In js?