Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/minimap_panel.xml
Show All 13 Lines | <object size="100%-80 100%-80 100%-5 100%-5"> | ||||
> | > | ||||
<action on="Press">if (g_HasIdleWorker) findIdleUnit(g_WorkerTypes);</action> | <action on="Press">if (g_HasIdleWorker) findIdleUnit(g_WorkerTypes);</action> | ||||
<action on="MouseEnter">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle-highlight.png";</action> | <action on="MouseEnter">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle-highlight.png";</action> | ||||
<action on="MouseLeave">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle.png";</action> | <action on="MouseLeave">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle.png";</action> | ||||
<action on="MouseLeftPress">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle.png";</action> | <action on="MouseLeftPress">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle.png";</action> | ||||
<action on="MouseLeftRelease">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle-highlight.png";</action> | <action on="MouseLeftRelease">if (g_HasIdleWorker) Engine.GetGUIObjectByName("idleOverlay").sprite = "stretched:session/minimap-idle-highlight.png";</action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- Diplomacy Color Button --> | |||||
<object size="5 100%-80 80 100%-5"> | |||||
<object type="button" | |||||
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. | |||||
name="diploColorButton" | |||||
tooltip_style="sessionToolTip" | |||||
> | |||||
<translatableAttribute id="tooltip">Toggle Diplomacy colors</translatableAttribute> | |||||
<action on="Press">g_DiplomacyColorsToggle = !g_DiplomacyColorsToggle; updatePlayerColors();</action> | |||||
<action on="MouseEnter">Engine.GetGUIObjectByName("diploOverlay").sprite = "stretched:session/minimap-diplo-highlight.png";</action> | |||||
<action on="MouseLeave">Engine.GetGUIObjectByName("diploOverlay").sprite = "stretched:session/minimap-diplo.png";</action> | |||||
<action on="MouseLeftPress">Engine.GetGUIObjectByName("diploOverlay").sprite = "stretched:session/minimap-diplo.png";</action> | |||||
<action on="MouseLeftRelease">Engine.GetGUIObjectByName("diploOverlay").sprite = "stretched:session/minimap-diplo-highlight.png";</action> | |||||
</object> | |||||
elexisUnsubmitted 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 | |||||
templeAuthorUnsubmitted 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.) | |||||
templeAuthorUnsubmitted Not Done Inline Actionsdone temple: done | |||||
</object> | |||||
<!-- Minimap --> | <!-- Minimap --> | ||||
<object name="minimap" | <object name="minimap" | ||||
type="minimap" z="20" | type="minimap" z="20" | ||||
size="8 8 100%-8 100%-8" | size="8 8 100%-8 100%-8" | ||||
> | > | ||||
<action on="WorldClick">handleMinimapEvent(arguments[0]);</action> | <action on="WorldClick">handleMinimapEvent(arguments[0]);</action> | ||||
</object> | </object> | ||||
<!-- Overlays --> | <!-- Overlays --> | ||||
<object name="minimapOverlay" size="4 4 100%-4 100%-4" type="image" sprite="stretched:session/minimap_circle_modern.png" ghost="true"/> | <object name="minimapOverlay" size="4 4 100%-4 100%-4" type="image" sprite="stretched:session/minimap_circle_modern.png" ghost="true"/> | ||||
<object name="idleOverlay" z="100" size="100%-125 100%-125 100%-5 100%-5" type="image" sprite="stretched:session/minimap-idle.png" ghost="true"/> | <object name="idleOverlay" z="100" size="100%-120 100%-120 100%-5 100%-5" type="image" sprite="stretched:session/minimap-idle.png" ghost="true"/> | ||||
<object name="diploOverlay" z="100" size="4 100%-120 120 100%-5" type="image" sprite="stretched:session/minimap-diplo.png" ghost="true"/> | |||||
Done Inline Actions+macy elexis: +macy | |||||
</object> | </object> | ||||
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) |
Wildfire Games · Phabricator
capitcal c since it's a title case I suppose?