Add LuaStyle.extra_[margin/padding]_when_activated

Post Reply
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 208
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Add LuaStyle.extra_[margin/padding]_when_activated

Post by Therenas »

Currently, when changing styles during runtime, we have nice convenient attributes on LuaStyle where we can change multiple of the directions (top, right, bottom, left) in one line, simply using .padding and .margin (and even .cell_padding!).

It would be swell if we could have the same kind of attribute to set 'extra_margin_when_activated' and 'extra_padding_when_activated' in the same way.

Bilka
Factorio Staff
Factorio Staff
Posts: 2790
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Add LuaStyle.extra_[margin/padding]_when_activated

Post by Bilka »

1.1 changelog wrote:Added LuaStyle::extra_margin_when_activated and extra_padding_when_activated write, which also accept arrays of values.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”