diff -r 1a0bed0b4f1c -r 1cb8f90bf4fd svghmi/widget_button.ysl2 --- a/svghmi/widget_button.ysl2 Fri Apr 05 14:55:58 2024 +0200 +++ b/svghmi/widget_button.ysl2 Fri Apr 05 14:59:00 2024 +0200 @@ -199,6 +199,16 @@ activable(); } +// FlatButton is same as Button, but it has no active/inactive elements +// and doesn't reflect current state +widget_class("FlatButton"){ + | frequency = 5; + const "fsm","exsl:node-set($_button_fsm)"; + call "generated_button_class" with "fsm", "$fsm"; +} + +widget_defs("FlatButton"); + widget_class("PushButton"){ | frequency = 20; const "fsm","exsl:node-set($_push_button_fsm)";