Page 1 of 1

Add the ability to make a button pressed

Posted: Mon Mar 04, 2019 4:23 pm
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 737 times

Re: Add the ability to make a button pressed

Posted: Tue Mar 05, 2019 7:46 am
by DaveMcW
This is just a checkbox with different graphics.

Re: Add the ability to make a button pressed

Posted: Fri Nov 03, 2023 10:07 am
by Bilka
This was implemented, see 71621, LuaGuiElement::auto_toggle and LuaGuiElement::toggled read/write.