1
Scripting / Re: Displays menu // Filter displays or use several lists ?
« on: August 27, 2023, 06:42:12 AM »
Ok, just found a simple solution.
In this example, pressing left will reach the first Display of the previous category of the current display:
function on_signal( sig )
{
switch ( sig )
{
case "left":
if (fe.list.index <10) fe.list.index = 20
else if (fe.list.index >= 10 && fe.list.index < 20)fe.list.index = 0
else if (fe.list.index >= 20) fe.list.index = 10;
return false;
---
Sorry again for asking ;(
Johann
In this example, pressing left will reach the first Display of the previous category of the current display:
function on_signal( sig )
{
switch ( sig )
{
case "left":
if (fe.list.index <10) fe.list.index = 20
else if (fe.list.index >= 10 && fe.list.index < 20)fe.list.index = 0
else if (fe.list.index >= 20) fe.list.index = 10;
return false;
---
Sorry again for asking ;(
Johann