widelands / wl_addons_server

Provides the add-ons server and all add-ons for the Widelands game.

Home Page:https://www.widelands.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with themes

frankystone opened this issue · comments

I have started to make a new theme as an add-on. The first thing i did was to copy the theme from matthiakl to a new folder called minimalistic_theme.wad below ./widelands/addons/. Then i have created new window borders and saved them in fsmenu/windows/ and wui/windows/ with the correct name ([top, right, left, bottom].png). But the new
borders are not shown when starting widelands + activate this addon + restart widelands. All windows, also inside a game, use the original window borders.

mathiakl's theme doesn't work either correct: Most of the defined images are not used if this addon is activated.

minimalistic_theme.zip

widelands version: [3cb6de2@master] (Debug)

I'm not sure if I understand the problem correctly. It seems to work fine for me:
Can you provide screenshots of the problem, and state which images exactly you would expect to see and what images are used instead?
grafik

Hm, i can't get it work. Only activated mathiakl's theme:

shot0001

The background image is still the original one.

Edit: There is also not output in the terminal saying that theme xy was loaded. Should there be such output?

Started also with a clean config file, but no luck. The config has a key theme which points to "templates/default" :

theme="templates/default"
addons="auto_soldiers_cs.wad:false,free_heroes.wad:false,free_heroes_new.wad:false,legacy_ui.wad:true,minimalistic_theme.wad:false"

You also need to select the Theme in the options menu (dropdown "Nutzeroberflächenthema")

Ahhhh, i knew i made a stupid failure.... Thanks.

There are too many options in the meantime imho.

And it looks like some values are hardcoded, e.g. the border width.

Yes, there's still a lot of UI-related stuff that should be moved to Lua in the long run.

The Interface and Window tabs of the options menu were merged recently because the tab row got too wide, so it seems rather cluttered now. Suggestions how to unclutter it without adding more tabs welcome…