This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adoptive size of minimap based on screen size
- Loading branch information
1 parent
2b2f8df
commit 84f3938
Showing
9 changed files
with
76 additions
and
40 deletions.
There are no files selected for viewing
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<object name="minimapPanel" size="-7 100%-350 350 100%"> | ||
<!-- Black background circle--> | ||
<object type="image" size="10 24 100%-47 100%-33" sprite="stretched:session/background_circle.png" ghost="true" /> | ||
<!-- Background hover panel below the minimap --> | ||
<object type="image" size="6 75%+15 100%-43 100%" sprite="stretched:session/background_hover_panel.png" ghost="true" /> | ||
|
||
<!-- MiniMap --> | ||
<object name="minimap" size="9 22 100%-44 100%-31" type="minimap" mask="true" flare_texture_count="16" flare_render_size="32" flare_animation_speed="11" flare_interleave="true" flare_lifetime_seconds="6" /> | ||
|
||
<!-- Minimap circle --> | ||
<object type="image" sprite="stretched:session/background_minimap_circle.png" size="7 20 100%-42 100%-29" ghost="true" /> | ||
|
||
<!-- Idle Worker Button --> | ||
<object name="idleWorkerButton" type="button" size="74%+4 75%+19 89%-8 90%+7" tooltip_style="sessionToolTipCircleBottom" hotkey="selection.idleworker" sprite="stretched:session/minimap-idle.png" sprite_over="stretched:session/minimap-idle-highlight.png" sprite_disabled="stretched:session/minimap-idle-disabled.png" mouse_event_mask="texture:session/minimap-idle.png" sound_pressed="audio/interface/ui/ui_button_click.ogg" /> | ||
<!-- Total number of idle workers --> | ||
<object name="totalNumberIdleWorkers" type="text" size="74%+4 75%+19 89%-8 90%+7" style="resourceIdleWorker" /> | ||
|
||
<!-- Flare Button --> | ||
<object name="flareButton" type="button" size="62%+9 85%+8 77%-3 100%-4" tooltip_style="sessionToolTipCircleBottom" hotkey="session.flareactivate" sprite="stretched:session/minimap-flare.png" sprite_over="stretched:session/minimap-flare-highlight.png" mouse_event_mask="texture:session/minimap-flare.png" sprite_disabled="stretched:session/minimap-flare-disabled.png" sound_pressed="audio/interface/ui/ui_button_click.ogg" /> | ||
|
||
<!-- Score Button --> | ||
<object name="scoreButton" type="button" size="1%+8 75%+19 16%-4 90%+7" tooltip_style="sessionToolTipCircleBottom" sprite="stretched:session/minimap-score.png" sprite_over="stretched:session/minimap-score-highlight.png" mouse_event_mask="texture:session/minimap-score.png" sound_pressed="audio/interface/ui/ui_button_click.ogg"> | ||
<action on="Press">g_stats.toggle();</action> | ||
<object> | ||
<!-- Circle--> | ||
<object name="minimapPanel"> | ||
<!-- Black background circle--> | ||
<object type="image" size="3 3 100% 100%" sprite="stretched:session/background_circle.png" ghost="true"/> | ||
<!-- MiniMap --> | ||
<object name="minimap" size="2 2 100% 100%" type="minimap" mask="true" flare_texture_count="16" flare_render_size="32" flare_animation_speed="11" flare_interleave="true" flare_lifetime_seconds="6" /> | ||
<!-- Minimap circle --> | ||
<object type="image" sprite="stretched:session/background_minimap_circle.png" size="0 0 100% 100%" ghost="true" /> | ||
</object> | ||
<!-- Hover panel below the minimap --> | ||
<object name="hoverPanel" type="image" sprite="minimapHoverPanel"> | ||
<!-- Idle Worker Button --> | ||
<object name="idleWorkerButton" type="button" size="84% 6% 98% 60%+1" tooltip_style="sessionToolTipCircleBottom" hotkey="selection.idleworker" sprite="stretched:session/minimap-idle.png" sprite_over="stretched:session/minimap-idle-highlight.png" sprite_disabled="stretched:session/minimap-idle-disabled.png" mouse_event_mask="texture:session/minimap-idle.png" sound_pressed="audio/interface/ui/ui_button_click.ogg"> | ||
<!-- Total number of idle workers --> | ||
<object name="totalNumberIdleWorkers" type="text" style="resourceIdleWorker" /> | ||
</object> | ||
<!-- Flare Button --> | ||
<object name="flareButton" type="button" size="72% 40%-1 86% 94%" tooltip_style="sessionToolTipCircleBottom" hotkey="session.flareactivate" sprite="stretched:session/minimap-flare.png" sprite_over="stretched:session/minimap-flare-highlight.png" mouse_event_mask="texture:session/minimap-flare.png" sprite_disabled="stretched:session/minimap-flare-disabled.png" sound_pressed="audio/interface/ui/ui_button_click.ogg" /> | ||
<!-- Score Button --> | ||
<object name="scoreButton" type="button" size="2%-1 6% 16%-1 60%+1" tooltip_style="sessionToolTipCircleBottom" sprite="stretched:session/minimap-score.png" sprite_over="stretched:session/minimap-score-highlight.png" mouse_event_mask="texture:session/minimap-score.png" sound_pressed="audio/interface/ui/ui_button_click.ogg"> | ||
<action on="Press">g_stats.toggle();</action> | ||
</object> | ||
<!-- Diplomacy Colors Button --> | ||
<object name="diplomacyColorsButton" type="button" size="14% 40%-1 28% 94%" tooltip_style="sessionToolTipCircleBottom" hotkey="session.diplomacycolors" sound_pressed="audio/interface/ui/ui_button_click.ogg" /> | ||
</object> | ||
|
||
<!-- Diplomacy Colors Button --> | ||
<object name="diplomacyColorsButton" type="button" size="13%+3 85%+8 28%-9 100%-4" tooltip_style="sessionToolTipCircleBottom" hotkey="session.diplomacycolors" sound_pressed="audio/interface/ui/ui_button_click.ogg" /> | ||
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters