Flight-Tracker-StreamDeck
Flight-Tracker-StreamDeck copied to clipboard
Drop-downs for Simulation Variables
For new users, I believe it would be nice to have some sort of picker to select a simulation variable instead of free text. This could be done via reflection to look at all of the structs. An auto-complete text box could accomplish this, with validation preventing the user from putting in a variable name that doesn't exist.
Even more helpful would be to have a description of all of the variables.
If you would consider this, I would be interesting in creating a fork.
There is already an old branch created by Pieter who started on it. I was looking at it a bit, but got sidetracked with something else.
We can revisit it.
Awesome. Thanks for the great project. BTW, your code is very clean and organized. Let me know if you need any help!
There is already an old branch created by Pieter who started on it. The main problem was that a drop-down of all variables (even categorized) was VERY cluttered and slow. I didn't like the end result, so I paused it in search for something better.
I think some kind of auto-complete text box would be better, but we would have to custom build that control.
Or indeed a separate pop-up window with search function and description for each possible variable.
HTML5 has the new data list capability and you bind a text box to this and it behaves as an autocomplete. I don't see a reason why streamdeck wouldn't support this since all browsers today do.
I played around with datalist in the properties editor. Even though the input field shows a drop down icon, clicking on it does nothing. Also, it looks like autocomplete didn't work setting that either. I do see where data lists are supported from the documentation, but not with just a plane text field.
It looks like the only option is to create another window for selecting a sim var.