-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Variables - init #57
Comments
After thinking about it, the last two points are a problem, |
The init for global variables is definitely something I will add to this. Because I have also run into the issue of a variable initially being |
The "none" problem was my initial intention for this request |
I have 2 options in mind for this. Option 1 enables you to add the variables directly in the config file. Option 2 enables you to call a jinja2 script file. Option 1 (part of the config_a320.json): "initialization": {
"global_variables": [
{
"name": "MFD_RANGE",
"value": 10
},
{
"name": "OTHER_VAR",
"value": false
}
],
} Option 2 (part of the config_a320.json): "initialization": {
"on_config_load": "Functions/A320/init.jinja2"
} Functions/A320/init.jinja2:
Any preference? |
I wouldnt split the config to too many files, makes it more complex to share |
I would prefer to have it in one file. |
Great idea, button 32 long press = init aircraft, |
...ok, you are right, this can be done already. I think it would be good implement it in a way, that the initialization can be evoked flexible: by an event, like "on_config_load" in option 2 (if I understand it right), or by pressing a button or someting else. |
Many of my plane settings habe common rotary/buttons. Is it possible to have a common config file and only plane specific values in other files (other languages have something like a perform) . I'm not talking about global values. |
I've made a seperate issue to track this request regarding the common config file. It is quite a big change so It's probably not coming too soon |
This has been released in https://github.com/maartentamboer/X-Touch-Mini-FS2020/releases/tag/v1.5.0 |
Is it possible to add an init section for every aircraft
running when aircraft/flight load to
The text was updated successfully, but these errors were encountered: