April 26, 20224 yr In realation to he 2d gauges and the XML files, I read the documentation provided and I realised it is very simple. Basically you can: Place an image and link it to an aircraft variable to make it visible or not and rotate it or not (even linearly). Create some text box also with the posibility of make it visible or not linked to a aircraft variable. This information can be string, can be a number or the result of a calculation of one or more variables. Create a mouse area (only detects wheel move up or down (both independently) and left click single events and link the events to one single acction in the plane. You cannot deactivate dinamically the mouse areas. What you cannot do, and it will be tremendously useful, is use an if{} function in any of the previous three to link actions in the script. For example to create a button in the gauge to display in the same box different info or change the info from one format to another (Celsius to farenheit for example). Are there plans to add all this posibilities to the script?
April 26, 20224 yr Commercial Member 1 hour ago, Ala13_Kokakolo said: What you cannot do, and it will be tremendously useful, is use an if{} function in any of the previous three to link actions in the script. For example to create a button in the gauge to display in the same box different info or change the info from one format to another (Celsius to farenheit for example). Not sure I understand - where exactly would you use that if{ ? TMBK it can only be used inside the %...%!..! GaugeText scheme, and that should work with the gauges. Option 1: create the same element twice with different text/unit and toggle their visibility with your own LVar, which you manipulate as desired, for example with an RPN script (so only one of them is in view at any point in time) Option 2: Use a local String-LVar (L:whatever, String) that contains the text to be displayed and manipulate that text in an RPN script as desired. Edited April 26, 20224 yr by Lorby_SI LORBY-SI
April 26, 20224 yr Author Hi and thanks for your response. I will try those suggestions. What I meant in the explanation is, yes, create an "if{}" within the %...%!...!, so far all my attemps where unsuccessful. But I will follow your suggestions and try again, I did not know there was possible to declare a Local Variable in the XML, i will try that as well (I have not seen that in any script of any example gauge or any other i downloaded from internet).
April 26, 20224 yr Commercial Member LVars don't need a declaration, you just use them in your code and they come alive. Be mindful of the follwing functional difference in AAO: (L:whatever) and (L:whatever, String) are local processing LVars that never leave AAO. (Lwhatever, anyunit) is a simulator LVar that will be sychronized with the sim. Only use those when required (=for reading from/writing to LVars of an aircraft) As far as %...%!..! goes - bugs are always a possibility. Just let me know if it doesn't work like it is supposed to - by sending an email with your proof of purchase to the suppport address on the last page of the manual . Edited April 26, 20224 yr by Lorby_SI LORBY-SI
April 26, 20224 yr Author I am at work now (procastinating). I will do it as soon as I go back home. Cheers.
Archived
This topic is now archived and is closed to further replies.