Graphics messed up when you change menu colour

Started by Silken Healer, December 15, 2024, 08:59:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Silken Healer

when you change the menu colour for the first time the graphics go messed up e.g. buttons being different colours, random chunks of different colours, etc.

Forestidia86

Can you give the numbers which it happened with?

Silken Healer


Forestidia86

Attached an example of the messed up colors.

Silken Healer

#4
Yes, also the Lix skill icons and stuff colours are changed until you close and open. I would attach an image/video, but I'm a bit tired to do a proper bug report like I was doing, I'm sure Simon would rather I do a quick bug report than none at all

Simon

#5
Hmm, a long-standing ugly cosmetic bug. Few people will run into it, but it makes the whole program look pathetic. Should be fixed for vanity alone. Should also be fixed to make the menu color change easier to preview.

Options in the option menu are annoying to program if all of these come together:

  • We want to preview the outcome in the options menu. I.e., the menu reacts to each change of the value picker even before OK.
  • Previewing is easiest by changing a global variable in the program. We keep the new value for the global on OK. We reset the global on Cancel.
  • It's expensive to change the global and all of its implications. Here, we'll have to reload and recolor all menu assets (arrows etc.) and force a full GUI redraw with the new colors.

That's why I've postponed the bug for this long.

In a way, the bug is partly fixed. We preview the menu colors. We merely don't preview the menu images (arrows etc.) and don't force the GUI redraw.

The workaround is to restart Lix once with the new colors.

-- Simon