Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: markc74 on May 02, 2024, 04:11:52 AM

Title: Override select control on a layout
Post by: markc74 on May 02, 2024, 04:11:52 AM
Hi all. I'm working on a display menu layout where I want to override the default SELECT control with my own function.

I want to do something different when I press the select button, but at the moment when I try to this it simply loads the display it thinks I want anyway.

Any ideas?
Title: Re: Override select control on a layout
Post by: markc74 on May 02, 2024, 09:38:43 AM
I worked it out  :)

Seems like function on_signal( signal_str ) did the trick...  :)

Another problem though - or actually a question - is it possible to write values somewhere when using the display menu (or any layout) ?

I want to store the state of elements on the layout on exit so that when it is reloaded they appear where they were from the previous time the menu was shown. If this sounds confusing let me know and I'll post a video of what I'm trying to achieve.

Thanks in advance!
Title: Re: Override select control on a layout
Post by: markc74 on May 04, 2024, 10:51:26 AM
Aaaaand fixed this one too using the fe.nv table

Slowly getting where I need to be... There'll be more questions coming soon!
Title: Re: Override select control on a layout
Post by: tankman37 on October 04, 2024, 11:40:26 PM
Trying to understand fe.nv, could you post some code? also looking to save element position etc
Title: Re: Override select control on a layout
Post by: jakabasej8 on November 15, 2024, 11:32:58 PM
Hi all. I'm working on a display menu layout where I want to override the default SELECT control with my own function. Shopsy (https://www.shopsy.si/)

I want to do something different when I press the select button, but at the moment when I try to this it simply loads the display it thinks I want anyway. https://www.rcl-group.com/erp-sistem/ (https://www.rcl-group.com/erp-sistem/)

Any ideas?
thats a great project!