nguyenquyhy / Flight-Tracker-StreamDeck

A Stream Deck plugin to interact with Microsoft Flight Simulation
https://flightsim.to/file/3178/flight-tracker-streamdeck-plugin
GNU General Public License v3.0
374 stars 71 forks source link

Simple button to display a number for one or more Simulation Variables #352

Closed sromeroi closed 1 year ago

sromeroi commented 2 years ago

Is your feature request related to a problem? Please describe. I have Simple Gauge buttons for Airspeed, Throttle RPM, Trim value, Altitude, Vertical Speed, etc. (a six-pack like page in my Stream Deck with some additional info such as the current trim %, RPMs, etc). For some of them is nice to have the "gauge" but for other, I woud like just to have the value and the title, like:

  200

  HDG

It would also be interesting that pressing this "Value button" could (optionally) trigger an event or set a variable to a value, and the same for long-pressing (hold button) with a different event/variable set.

One sample usage is having a HEADING INDICATOR instrument showing the current plane heading and allowing to simple press it to set the HDG BUG to the current direction, or set it to 0 with Long Press.

Describe the solution you'd like or alternatives you've considered

Different ways to achieve this:

1.- Take advantage of the "gauge button" and:

2.- Take advantage of the "Toggle button" and:

3.- Create a new "Simple Value" button with

SIMVAR1(user presses enter here)
SIMVAR2

And that would display as:

1234
3452

(Including Title on top or bottom if it's visible)

Ideally, both options 1 and 3 would be perfect, but as Gauge already implements colors, it might be the easiest way to add it.

Thanks :)

sromeroi commented 2 years ago

Photo 2-9-22, 13 09 03

Picture of my current "six-pack screen". I'm trying to remove the gauge from ALT, HDG, VS and TRIM and also provide them the capability to trigger "events" (toggle something) or set simVar values on press/hold.

rmroc451 commented 2 years ago

Pretty sure instead of using gauge button, you can just use https://github.com/nguyenquyhy/Flight-Tracker-StreamDeck/blob/main/docs/USERGUIDE.md#generic-toggle-button

Give that a try?

sromeroi commented 2 years ago

Pretty sure instead of using gauge button, you can just use https://github.com/nguyenquyhy/Flight-Tracker-StreamDeck/blob/main/docs/USERGUIDE.md#generic-toggle-button

Give that a try?

Yes, that was Option 2.- in my original request (reuse Generic Toggle by adding font style and position options for the Display Value item:

Photo 6-9-22, 16 16 07

The problem is that the number is too small compared with the Gauge values:

Photo 6-9-22, 16 15 42

nguyenquyhy commented 2 years ago

I guess at some point I should merge those 2 button types as a lot should be common between the 2. Maybe the generic button can have 3 different display mode: no gauge, simple gauge and custom gauge.

For now, maybe I'll add in font size for both buttons. I do see issues occasionally when the number are too long/short.

You won't get the color options for now though. And I am not sure what you mean by this Add the Trigger Events/Set values on press/hold explained in 1.- in option 2. I thought it is already there.

sromeroi commented 2 years ago

I guess at some point I should merge those 2 button types as a lot should be common between the 2. Maybe the generic button can have 3 different display mode: no gauge, simple gauge and custom gauge.

Good solution.

For now, maybe I'll add in font size for both buttons. I do see issues occasionally when the number are too long/short.

Perfect, thanks! Being to change font size / color and position (top/center/bottom) would be fantastic. I will put then for my "ALT/HDG/TRIM etc." indicators the title on bottom and the number of top with a bigger font.

And I am not sure what you mean by this Add the Trigger Events/Set values on press/hold explained in 1.- in option 2. I thought it is already there.

Yes, that's right, they are present in option 2. It is missing in the Gauge buttons, and it would be very useful to be able to trigger 2 different events (on press and on hold, with their respective parameters) when "pressing" gauge buttons.

Thanks a lot for your quick response.

nguyenquyhy commented 1 year ago

I split this into #378 and #379 and close this one for now.

sromeroi commented 1 year ago

Thanks!