How to change themes (user interface)?

General feedback and discussion of the game.

Moderators: Forum Moderators, Developers

koolza
Posts: 2
Joined: October 11th, 2014, 12:39 pm

How to change themes (user interface)?

Post by koolza » October 11th, 2014, 12:45 pm

Hi,

I played Wesnoth a while ago, and I remember I could change the interface (widescreen with 2 column if I have good memory) to show calculated damages directly on hover the unit I wanted to attack. I've been searching for like an hour and not a word about how to change the UI in Wesnoth. I didn't remember that was that hard last time I played, is it still possible? Is there another way to it that does not require clicking the button for each weapon each time I attack an enemy?

Thank you very much!

User avatar
shadowm
Site Administrator
Posts: 6490
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: How to change themes (user interface)?

Post by shadowm » October 11th, 2014, 7:22 pm

Check in Preferences → Display → Themes. However, if you are running Wesnoth 1.11.10 or later you won’t see any options other than the default theme and the Pandora-optimized (800x480 px) version; the widescreen theme was removed because it was completely broken and the maintainer didn’t have time to fix it before the feature freeze.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Elsewhere: shadowmBlogFollow me on Twitter

koolza
Posts: 2
Joined: October 11th, 2014, 12:39 pm

Re: How to change themes (user interface)?

Post by koolza » October 12th, 2014, 10:28 am

Oh, OK, thank you very much for your answer.

gloccusv
Posts: 31
Joined: September 6th, 2013, 5:25 am

Re: How to change themes (user interface)?

Post by gloccusv » November 23rd, 2014, 3:58 am

I was very disappointed to find that the widescreen theme had been removed as I find the real-time combat odds invaluable, so I decided to have a go at my own version.

It's not perfect (I get some ghosting in the top left corner every now and again), but it gets the job done. I have left the right bar unchanged except for moving the time of day into the left sidebar to give a bit more room for odds on the right.

Please bear in mind that this is my first attempt at using ThemeWML and I don't intend to work on it further as it is good enough for my personal use, but I will upload it here in case anyone else wants to use it.

Note: this no longer works as of 1.12.4. If using the latest version of BfW, download the version in my next post below.
Attachments
asymmetric.cfg
Place in BfW 12.0/data/themes
(25.46 KiB) Downloaded 253 times
Last edited by gloccusv on October 9th, 2015, 12:34 am, edited 1 time in total.
Author of SP campaigns An Undead Incursion, A Beastly Tale and A Northern Village
and Asymmetric Widescreen theme for 1.12 & 1.14.

fabi
Developer
Posts: 1223
Joined: March 21st, 2004, 2:42 pm
Location: Germany

Re: How to change themes (user interface)?

Post by fabi » November 26th, 2014, 2:53 am

gloccusv wrote:... as I find the real-time combat odds invaluable...
Yes.
Once used to it's hard to go without them.

My next approach to the issue is some popup.
snapshot1.png

fabi
Developer
Posts: 1223
Joined: March 21st, 2004, 2:42 pm
Location: Germany

Re: How to change themes (user interface)?

Post by fabi » November 26th, 2014, 7:33 pm

Another screenshot now using the usual transparency level of the text tooltips.
snapshot2.png

gloccusv
Posts: 31
Joined: September 6th, 2013, 5:25 am

Re: How to change themes (user interface)?

Post by gloccusv » September 23rd, 2015, 2:26 am

Due to a change somewhere between 1.12.0 and 1.12.4, my previous asymmetric widescreen file no longer works. Here is an updated file which does. The only difference is the removal of an include.

The file should be placed in BfW1.12.4+/data/themes where BfW1.12.4+ is your main Wesnoth directory.

I have added a second file for 1.14.4 and later (as explained below, it doesn't work for earlier versions). The only difference is that a few things have been removed to bring it in line with the mainline themes. The installation instructions are the same as for 1.12.
Attachments
asymmetric.cfg
Widescreen theme for 1.14.4 and later
(23.29 KiB) Downloaded 25 times
asymmetric.cfg
Widescreen theme for 1.12.4 and later
(25.44 KiB) Downloaded 220 times
Last edited by gloccusv on September 12th, 2018, 4:41 am, edited 1 time in total.
Author of SP campaigns An Undead Incursion, A Beastly Tale and A Northern Village
and Asymmetric Widescreen theme for 1.12 & 1.14.

gloccusv
Posts: 31
Joined: September 6th, 2013, 5:25 am

Re: How to change themes (user interface)?

Post by gloccusv » July 2nd, 2018, 3:59 am

Something has broken the real-time combat odds in 1.14.x so that those less than 10% show up rounded to the nearest percent, whilst those of 10% and over are given in scientific notation to one significant figure; not very useful or readable. As a result, I won't be using 1.14 myself unless or until this is fixed, although I will eventually try to update my SP campaigns.

I don't believe there is any point in my uploading a new asymmetric.cfg file since it doesn't work acceptably.
Author of SP campaigns An Undead Incursion, A Beastly Tale and A Northern Village
and Asymmetric Widescreen theme for 1.12 & 1.14.

enclave
Posts: 885
Joined: December 15th, 2007, 8:52 am

Re: How to change themes (user interface)?

Post by enclave » July 2nd, 2018, 11:28 am

hi, could you post a screenshot of any working version, just to have approximate understanding what it looks like? :)

User avatar
Celtic_Minstrel
Developer
Posts: 1246
Joined: August 3rd, 2012, 11:26 pm
Contact:

Re: How to change themes (user interface)?

Post by Celtic_Minstrel » July 2nd, 2018, 5:39 pm

This sounds like a bug that could be fixed; I'd just need to know the name of the ThemeWML tag used to display the real-time combat odds, and a summary of the expected behaviour (or you could post a screenshot demonstrating it).
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

Landiss
Posts: 33
Joined: May 18th, 2018, 6:48 pm

Re: How to change themes (user interface)?

Post by Landiss » July 2nd, 2018, 8:52 pm

From what I've seen I believe it's the tags selected_unit_weapons and highlighted_unit_weapons. There need to be 2 tags, one for each unit. The tags also display list of weapons, so they replace the unit_weapons tag. However, highlighted_unit_weapons does not display any weapons if there is no unit selected (which I would say is a bug, since selected_unit_weapons does display weapons even if there is no unit highlighted).

It looks like this (ignore the messed up display, look at the numbers):
probabilities.PNG

User avatar
Celtic_Minstrel
Developer
Posts: 1246
Joined: August 3rd, 2012, 11:26 pm
Contact:

Re: How to change themes (user interface)?

Post by Celtic_Minstrel » July 4th, 2018, 2:18 am

I have located the issue (someone, possibly even me, made incorrect use of the std::set_precision function) and committed a fix, which will be in 1.14.4 whenever that happens.

However, it would be useful if someone could verify the fix before then by building the 1.14 branch and trying a theme that uses it.
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

Landiss
Posts: 33
Joined: May 18th, 2018, 6:48 pm

Re: How to change themes (user interface)?

Post by Landiss » July 4th, 2018, 7:15 am

Thanks Celtic Minstrel. Though I imagine this is not difficult, currently I don't have the knowledge, tools and time to get those. Perhaps over the weekend, unless someone checks that earlier.

gloccusv
Posts: 31
Joined: September 6th, 2013, 5:25 am

Re: How to change themes (user interface)?

Post by gloccusv » September 12th, 2018, 4:35 am

Wow! I wasn't actually expecting anyone to take the time and trouble to fix this issue (it works perfectly in 1.14.4, by the way). Thank you very much indeed.

I'll upload an updated theme file to my post above, although the one for 1.12 would probably still work. I'd better get round to updating my campaigns now.
Author of SP campaigns An Undead Incursion, A Beastly Tale and A Northern Village
and Asymmetric Widescreen theme for 1.12 & 1.14.

Shiki
Developer
Posts: 231
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: How to change themes (user interface)?

Post by Shiki » September 12th, 2018, 8:54 am

Could you post a screenshot how it looks / what it does?
Maintainer of Era of Myths.
Introduction to WML filtering and WML variables.

Post Reply