[0.16.x] set custom gui style

Place to get help with not working mods / modding interface.
Post Reply
osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

[0.16.x] set custom gui style

Post by osldgoth »

are we no longer able to set a custom style for gui?

I have in my code "data.raw["gui-style"].default.foo = {...}"

and the game gives me this error: "error while loading gui-style prototype 'default' (gui-style): Parent style not found: [foo]".

what I find odd though I've looked at another mod which uses the same code: "data.raw["gui-style"].default.bar = {...}", and it works fine. so I don't know.

Helfima
Fast Inserter
Fast Inserter
Posts: 199
Joined: Tue Jun 28, 2016 11:40 am
Contact:

Re: [0.16.x] set custom gui style

Post by Helfima »

osldgoth wrote:....Parent style not found: [foo]"..
your style must have a named property= parent
sample

osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

Re: [0.16.x] set custom gui style

Post by osldgoth »

The style(s) in question did have a named property 'parent', though was set to an invalid name, ending with "_style". removed the _style and it works now. thanks

Post Reply

Return to “Modding help”