[Klonan] [1.1.72] dropdown style not supporting all font_color types

This subforum contains all the issues which we already resolved.
User avatar
BrainGamer_
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Sun Nov 14, 2021 9:52 pm
Contact:

[Klonan] [1.1.72] dropdown style not supporting all font_color types

Post by BrainGamer_ »

Configuring a dropdown_style allows to specify a button_style for the button that opens the list_box to select an item from.
This button_style currently only allows to change default_font_color, hovered_font_color and disabled_font_color.
The other font color options (clicked_font_color, selected_font_color, selected_hovered_font_color and selected_clicked_font_color) don't have any effect on the dropdown button at all.

Additionally it appears that the background of the dropdown button uses the clicked_graphical_set.
Attachments
replace_default_dropdown.lua
This has a style configured to replace the default dropdown style so that the button font color is different for each possible font color type.
(1.56 KiB) Downloaded 97 times
styles.lua
The styles I used in the mod I am trying to build a GUI for.
(1.12 KiB) Downloaded 83 times
User avatar
BrainGamer_
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Sun Nov 14, 2021 9:52 pm
Contact:

Re: [1.1.72] dropdown style not supporting all font_color types

Post by BrainGamer_ »

This is the mod for which I try to make a GUI. Once opened (top left button) the dropdown in the top bar of the frame should behave identical as the regular button next to it (white font color while nothing is hovering/clicking and switching to a black font color once clicked / hovered).
Constructron-Continued.zip
the current state of the mod where I try to build a GUI
(1.21 MiB) Downloaded 93 times
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5304
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [Klonan] [1.1.72] dropdown style not supporting all font_color types

Post by Klonan »

Thanks for the report,

It is fixed for the next release
Post Reply

Return to “Resolved Problems and Bugs”