Display the Status of a Custom Indicator as Text?
I want to create a custom Indicator called !Window, and when I hit a particular button I want it to toggle between setting the indicator ON and OFF. I am using the SWITCHBUTTON in the button code to do that toggle.
My questions are:
1) Can I get the status of my custom indicator to show up as text in the LABEL of the button, and what is the syntax for that?
2) Can I write the status of my custom indicator to an ini file ( or some other better way) so that the correct indicator is showing when I restart RideRunner?
I am using this button to toggle between 2 states of GPS controlled volume, and in the past I was using SWITCHLABEL and SWITCHBUTTON to toggle between the 2 states. This however does not show the actual status of the setting but reverts to the first state of the SWITCHLABEL when I restart RR.
Here is the code I was trying to use to display the text as a Label:
Code:
L6,516,527,71,50,#DFX1R#,#DFX1G#,#DFX1B#,20,"Nissan:B","!WINDOW","CENTER"
Here is my button code:
Code:
B5,500,526,100,74,"SETVAR;speedatt;$p1speedatt$||
SETVAR;speedattmute;$p1speedattmute$||
SETVAR;speedattunit;$p1speedattunit$||
SETVAR;speedattvola;$p1speedattvola$||
SETVAR;speedattvolb;$p1speedattvolb$||
SETVAR;speedattspeeda;0||
SETVAR;speedattspeedb;$pspeedattspeedb$||
SETVAR;speedattmode;line||
SETVAR;speedattmute;$p1speedattmute$||
SETVAR;speedattmaxstep;15||
SAVETOINI;speedatt;$p1speedatt$||
SAVETOINI;speedattmute;$p1speedattmute$||
SAVETOINI;speedattunit;$p1speedattunit$||
SAVETOINI;speedattvola;$p1speedattvola$||
SAVETOINI;speedattvolb;$p1speedattvolb$||
SAVETOINI;speedattspeeda;0||
SAVETOINI;speedattspeedb;$p1speedattspeedb$||
SAVETOINI;speedattmode;line||
SAVETOINI;speedattmute;$p1speedattmute$||
SAVETOINI;speedattmaxstep;15||
"SETIND;!WINDOW;OFF"||
SWITCHBUTTON;5>>
"SETVAR;speedatt;$p2speedatt$||
SETVAR;speedattmute;$p2speedattmute$||
SETVAR;speedattunit;$p2speedattunit$||
SETVAR;speedattvola;$p2speedattvola$||
SETVAR;speedattvolb;$p2speedattvolb$||
SETVAR;speedattspeeda;0||
SETVAR;speedattspeedb;$pspeedattspeedb$||
SETVAR;speedattmode;line||
SETVAR;speedattmute;$p2speedattmute$||
SETVAR;speedattmaxstep;15||
SAVETOINI;speedatt;$p2speedatt$||
SAVETOINI;speedattmute;$p2speedattmute$||
SAVETOINI;speedattunit;$p2speedattunit$||
SAVETOINI;speedattvola;$p2speedattvola$||
SAVETOINI;speedattvolb;$p2speedattvolb$||
SAVETOINI;speedattspeeda;||
SAVETOINI;speedattspeedb;$pspeedattspeedb$||
SAVETOINI;speedattmode;line||
SAVETOINI;speedattmute;$p2speedattmute$||
SAVETOINI;speedattmaxstep;15||
"SETIND;!WINDOW;ON"||
SWITCHBUTTON;5",""