The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Andarix on November 22, 2021, 12:17:36 PM

Title: selected theme
Post by: Andarix on November 22, 2021, 12:17:36 PM
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.
Title: Re: selected theme
Post by: RESTRICTED ACCOUNT on November 22, 2021, 01:10:38 PM
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
Title: Re: selected theme
Post by: prissi on November 23, 2021, 12:22:49 PM
Fixed in r10244
Title: Re: selected theme
Post by: RESTRICTED ACCOUNT on November 24, 2021, 01:39:47 AM
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.
Title: Re: selected theme
Post by: Yona-TYT on November 24, 2021, 01:51:12 AM
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