Page 1 of 1

[solved][2.0.8] GUI: Frame: Error "Unknown style naked_frame"

Posted: Tue Oct 22, 2024 2:12 pm
by picklock
I am currently in the process of adapting my mods to V2.0. But I'm stuck at one point with my GUI. I haven't found anything in the changelog or in the Dokumentation.
Have I overlooked something? What do I need to change?
In V1.1 the following code still worked. In V2.0 I get the error "Unknown style naked_frame".

Code: Select all

			local pi_rss_set_fr_show_stat = pi_rss_set_fr_settings.add{
				type = "frame",
				name="pi_rss_set_fr_show_stat",
				direction="horizontal",
				style = "naked_frame",
			}

Re: [2.0.8] GUI: Frame: Error "Unknown style naked_frame"

Posted: Tue Oct 22, 2024 4:37 pm
by Bilka
A lot of styles were removed or changed. If you want the quick and lazy solution you can look for the style the lua files of a 1.1 install and copy it to your mod. The proper solution would be to look for a new style in 2.0 that does the same thing. There is no easy list for what styles were replaced by which other styles.

Re: [2.0.8] GUI: Frame: Error "Unknown style naked_frame"

Posted: Tue Oct 22, 2024 6:41 pm
by picklock
Thank you for the feedback.