Show levels above 9 in GUI
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Show levels above 9 in GUI
If you use an addon, era or campaign with units with levels above 9, in the GUI they are seen in almost all languages with ellipsis points. And you have to hover your mouse over to know the number.
I found two easy ways to do it. One of them is to modify in the file data/themes/default.cfg
The other way is to reduce the number of characters in your translation (if you don't know how, ask, it's easy). For example, in spanish
I found two easy ways to do it. One of them is to modify in the file data/themes/default.cfg
rect="+0
with -10
. Or -20
or greater if you have units with levels above 100Code: Select all
[unit_level]
id=unit-level
font_size={DEFAULT_FONT_SMALL}
rect="-10,=+0,+50,+16"
prefix= _ "statuspanel^lvl"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_level]
nv
for n
, which leaves space for one more character:
Code: Select all
#. [unit_level]: id=unit-level
#: data/themes/default.cfg:400
msgid "statuspanel^lvl"
msgstr "n"
- Lord-Knightmare
- Discord Moderator
- Posts: 2363
- Joined: May 24th, 2010, 5:26 pm
- Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
- Contact:
Re: Show levels above 9 in GUI
Why not just make a new similar theme add-on with support for better sidebar info. theme add-ons are certainly designable.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Re: Show levels above 9 in GUI
I don't even quite understand how
rect=
works. Redesigning the theme is already beyond my knowledge, and I had been looking for weeks for a way to see the levels, since it was one of the things that annoyed me the most
Last edited by Toranks on February 6th, 2023, 10:30 am, edited 1 time in total.
- Lord-Knightmare
- Discord Moderator
- Posts: 2363
- Joined: May 24th, 2010, 5:26 pm
- Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
- Contact:
Re: Show levels above 9 in GUI
There is/was a wiki page that covered ThemeWML. You can look up that. There's also the Altera by lea which has 3-4 custom themes you can look into. There's also the 1.12 classic theme being shipped as an addon and the Combat Info theme add-on.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium