mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Unify tooltip style of top menu items
This commit is contained in:
parent
dee2b73c7d
commit
680efb147d
4 changed files with 9 additions and 5 deletions
|
|
@ -65,6 +65,6 @@ class CivIcon
|
|||
}
|
||||
|
||||
CivIcon.prototype.Tooltip =
|
||||
markForTranslation("%(civ)s\n%(hotkey_civinfo)s / %(hotkey_structree)s: View Civilization Overview / Structure Tree\nLast opened will be reopened on click.");
|
||||
markForTranslation("%(civ)s\n%(hotkey_civinfo)s: View Civilization Overview\n%(hotkey_structree)s: View Structure Tree\nLast opened view will be reopened on click.");
|
||||
|
||||
CivIcon.prototype.CivTags = { "font": "sans-bold-stroke-14" };
|
||||
CivIcon.prototype.CivTags = { "font": "sans-bold-16" };
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@
|
|||
size="50%-48 -26 50%+48 70"
|
||||
name="civIcon"
|
||||
>
|
||||
<object name="civIconOverlay" style="CivIconOverlay" type="button" tooltip_style="sessionToolTipBold"/>
|
||||
<object name="civIconOverlay" style="CivIconOverlay" type="button" tooltip_style="sessionToolTip"/>
|
||||
</object>
|
||||
|
|
|
|||
|
|
@ -123,10 +123,14 @@ class CounterManager
|
|||
|
||||
return this.orderTooltip +
|
||||
tooltipData.reduce((result, data) =>
|
||||
result + "\n" + sprintf(translate(this.AllyStatTooltip), data), "");
|
||||
setStringTags(
|
||||
result + "\n" + sprintf(translate(this.AllyStatTooltip), data),
|
||||
this.AllyStatTags
|
||||
), "");
|
||||
}
|
||||
}
|
||||
|
||||
CounterManager.ResourceTitleTags = { "font": "sans-bold-16" };
|
||||
|
||||
CounterManager.prototype.AllyStatTooltip = markForTranslation("%(playername)s: %(statValue)s");
|
||||
CounterManager.prototype.AllyStatTags = { "font": "sans-bold-stroke-14" };
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<!-- This list encompasses resources and population -->
|
||||
<object size="0 0 50%-142 100%" name="resourceCounts">
|
||||
<repeat count="5">
|
||||
<object name="resource[n]" size="0 0 73 100%" type="button" style="resourceCounter" tooltip_style="sessionToolTipBold">
|
||||
<object name="resource[n]" size="0 0 73 100%" type="button" style="resourceCounter" tooltip_style="sessionToolTip">
|
||||
<object size="2 0 38 36" type="image" name="resource[n]_icon" ghost="true"/>
|
||||
<object size="33 4 180 22" type="text" style="resourceText" name="resource[n]_count"/>
|
||||
<object size="33 1 200 34" type="text" style="gathererCounts" name="resource[n]_stats"/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue