Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/minimap_panel.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<object | <object | ||||
name="minimapPanel" | name="minimapPanel" | ||||
size="0 100%-212 212 100%" | size="0 100%-212 212 100%" | ||||
type="image" | type="image" | ||||
sprite="mapPanel" | sprite="mapPanel" | ||||
> | > | ||||
<!-- Minimap --> | <!-- Minimap --> | ||||
<object size="8 8 100%-8 100%-8" type="minimap" z="20"> | <object size="8 8 100%-8 100%-8" type="minimap" z="20"> | ||||
<action on="WorldClick">handleMinimapEvent(arguments[0]);</action> | <action on="WorldClick">handleMinimapEvent(arguments[0]);</action> | ||||
</object> | </object> | ||||
<object | <object | ||||
elexis: capitcal c since it's a title case I suppose? | |||||
Not Done Inline ActionsI could go either way. temple: I could go either way. | |||||
type="image" | type="image" | ||||
size="4 4 100%-4 100%-4" | size="4 4 100%-4 100%-4" | ||||
sprite="stretched:session/minimap_circle_modern.png" | sprite="stretched:session/minimap_circle_modern.png" | ||||
ghost="true" | ghost="true" | ||||
/> | /> | ||||
<!-- Idle Worker Button --> | <!-- Idle Worker Button --> | ||||
<object | <object | ||||
Done Inline ActionsCan this be moved to JS? foo.onMouseLeave = function... should do elexis: Can this be moved to JS? foo.onMouseLeave = function... should do | |||||
Done Inline ActionsCan you explain this a little more? (I was just copying the idle worker stuff.) temple: Can you explain this a little more? (I was just copying the idle worker stuff.) | |||||
Not Done Inline Actionsdone temple: done | |||||
name="idleWorkerButton" | name="idleWorkerButton" | ||||
type="button" | type="button" | ||||
size="100%-120 100%-120 100%-5 100%-5" | size="100%-120 100%-120 100%-5 100%-5" | ||||
tooltip_style="sessionToolTip" hotkey="selection.idleworker" | tooltip_style="sessionToolTip" | ||||
hotkey="selection.idleworker" | |||||
sprite="stretched:session/minimap-idle.png" | sprite="stretched:session/minimap-idle.png" | ||||
sprite_over="stretched:session/minimap-idle-highlight.png" | sprite_over="stretched:session/minimap-idle-highlight.png" | ||||
sprite_disabled="stretched:session/minimap-idle-disabled.png" | sprite_disabled="stretched:session/minimap-idle-disabled.png" | ||||
> | > | ||||
<action on="Press">findIdleUnit(g_WorkerTypes);</action> | <action on="Press">findIdleUnit(g_WorkerTypes);</action> | ||||
</object> | </object> | ||||
<!-- Diplomacy Color Button --> | |||||
<object | |||||
name="diplomacyColorButton" | |||||
Done Inline Actions+macy elexis: +macy | |||||
type="button" | |||||
size="4 100%-120 119 100%-5" | |||||
tooltip_style="sessionToolTip" | |||||
sprite="stretched:session/minimap-diplo.png" | |||||
sprite_over="stretched:session/minimap-diplo-highlight.png" | |||||
Done Inline ActionsSomeone can +macy here during commit, if they want. temple: Someone can +macy here during commit, if they want. | |||||
Done Inline Actionsthey shall (at least for the name property) elexis: they shall (at least for the name property) | |||||
> | |||||
<translatableAttribute id="tooltip">Toggle Diplomacy Colors</translatableAttribute> | |||||
<action on="Press"> | |||||
g_DiplomacyColorsToggle = !g_DiplomacyColorsToggle; | |||||
updateDisplayedPlayerColors(); | |||||
</action> | |||||
</object> | |||||
</object> | </object> |
Wildfire Games · Phabricator
capitcal c since it's a title case I suppose?