News:

SimuTranslator
Make Simutrans speak your language.

selected theme

Started by Andarix, November 22, 2021, 12:17:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

Is it possible that the active theme is marked in the selection list for thmes?

For the fonts, the button for the selected font is depressed. This is not the case with the themes.

RESTRICTED ACCOUNT

#1
The code seems to be intended for that, but it doesn't seem to work right now. That is a bug.

EDIT: It compares the path of the theme file with the text in the button(theme name), so they will never match.
i.button->pressed = !strcmp( env_t::default_theme.c_str(), i.label->get_text_pointer() ); // mark current theme

prissi


RESTRICTED ACCOUNT

Oh, I'm sorry I was lazy. I wasn't expecting it to be such an easy fix, and I was hoping you would fix it. (´・ω・`)  Anyways, thank you.

Yona-TYT

Quote from: Ranran on November 24, 2021, 01:39:47 AMOh, I'm sorry I was lazy. I wasn't expecting it to be such an easy fix, and I was hoping you would fix it. (´・ω・`)  Anyways, thank you.
;D ;D ;D ;D ;D :P