I really don't understand what I am doing wrong here. I tried to refactor some voice pack for Elite so it is easier to modify and also correct some errors they left because I had troubles with my panels, and I simply CAN'T make this code work.
http://imgur.com/a/hrw2BThe first image is my action that will be called by others to open my comm panels. Not that my boolean check treats not set and false as the same value. If it is false, I will set it to true and reset the other panel status (they would become boolean as well if I can get this to work). If it is true, it simply set it to false.
The second image is the action that calls the first one THEN check the variable to say the correct line. So my keyboard shortcut is always typed, but the voice always say the same status instead of saying open/close/open/close, it never changes when it should. Am I an idiot? What am I doing wrong? I lost way too much time on this, I don't get what's not working
I also have a third action that should reset the view (close all panels) and calls the first method, but it doesn't even call it, because I guess the app can't see the real value of the boolean...
EDIT : I just saw I inverted my checks in the second image, true should say opened and false should say closed, but it doesn't change the fact that it always says the exact same line all the time.