Flight-Tracker-StreamDeck icon indicating copy to clipboard operation
Flight-Tracker-StreamDeck copied to clipboard

Drop-downs for Simulation Variables

Open Andywmm9 opened this issue 4 years ago • 5 comments

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.

Andywmm9 avatar Dec 26 '20 22:12 Andywmm9

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.

rmroc451 avatar Dec 26 '20 23:12 rmroc451

Awesome. Thanks for the great project. BTW, your code is very clean and organized. Let me know if you need any help!

Andywmm9 avatar Dec 31 '20 00:12 Andywmm9

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.

pieterwasalreadytaken avatar Jan 03 '21 14:01 pieterwasalreadytaken

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.

Andywmm9 avatar Jan 03 '21 15:01 Andywmm9

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.

Andywmm9 avatar Jan 12 '21 22:01 Andywmm9