Hi!
I am not sure if this is the proper forum to ask, but I will give it a try.
I am building a simple desktop simpit with a bunch of switches. I am also using Doug Dawsons gauge for using offsets to trigger custom variables with FSUIPC. It works great on most gauges that have "off/on" positions. However, with the gauge below, I have three positions. I would like to be able to toggle it between these positions using two keys.
(L:UMFSW_II, enum)
(A:Circuit general panel on, bool) (L:UMFSW_II, enum) && if{ 1 (>L:UMF_II, bool) } els{ 0 (>L:UMF_II, bool) }
(L:UMF_II, bool) (L:UMFSW_II, enum) + 2 == if{ 1 (>L:AC_Res, bool) } els{ 0 (>L:AC_Res, bool) }
(L:UMF_I, bool) (L:AC_Res, bool) + 1 >= if{ 1 (>L:AC_Bus, bool) } els{ 0 (>L:AC_Bus, bool) }
(L:UMFSW_II, enum) -- d -1 < if{ -1 } (>L:UMFSW_II, enum)
(L:UMFSW_II, enum) ++ d 1 > if{ 1 } (>L:UMFSW_II, enum)
I have little experience in XML/Gauge coding, so it is a bit difficult to interpret the syntax of the gauge so this is why I am posting this here. Can anyone help me and explain how to solve this? Do I need to modify the gauge or should I modify fsuipc.ini file and let each offset toggle multiple variables?
If the second option is correct, which variables should be toggled for the three states?
Thanks!
Roger