Misleading error source reported for styles
Posted: Tue May 26, 2020 6:13 pm
"StyleTestA" mod correctly implements a style, and allows the game to load...
"StyleTestB" mod has a style error, and Factorio doesn't load ...
The load error though makes it look like StyleTestA is at least partially to blame.
Prototype/GuiStyle says we have to use ["gui-style"].default.
Is there a better/recommended way of defining a style?
Code: Select all
local style = data.raw["gui-style"].default
style.StyleTestA =
{
type = "button_style",
parent = "frame_action_button",
width = 66
}
Code: Select all
local style = data.raw["gui-style"].default
style.StyleTestB =
{
type = "button_style",
parent = "close_button",
width = 66
}
Prototype/GuiStyle says we have to use ["gui-style"].default.
Is there a better/recommended way of defining a style?