Add the ability to make a button pressed

Post Reply
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Add the ability to make a button pressed

Post by WIZ4 »

I would like to be able to make a button pressed. This may be a button style. Or attribute, button.pressed = true
It should be possible to release this button on click.
Screenshot_6.jpg
Screenshot_6.jpg (3.56 KiB) Viewed 689 times
My native language is russian. Sorry if my messages are difficult to read.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Add the ability to make a button pressed

Post by DaveMcW »

This is just a checkbox with different graphics.

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

Re: Add the ability to make a button pressed

Post by Bilka »

This was implemented, see 71621, LuaGuiElement::auto_toggle and LuaGuiElement::toggled read/write.
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”