Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: arzoo on May 13, 2020, 05:45:05 AM

Title: Detect when the Displays list is active? SOLVED
Post by: arzoo on May 13, 2020, 05:45:05 AM
Can anyone tell me if it's possible for a plugin to detect when the Displays list is active vs when a list of games is active? Thanks
Title: Re: Detect when the Displays list is active?
Post by: zpaolo11x on May 13, 2020, 12:43:33 PM
If you mean the displays menu, you can check it in the transition callback function, when transition type is Transition.ShowOverlay and var is Overlay.Displays.

you can check if the layout is showing a display list and not a game list checking if fe.list.display_index is -1

Title: Re: Detect when the Displays list is active?
Post by: arzoo on May 13, 2020, 01:55:27 PM
Thanks for the info, very helpful.