pre-martin / StreamDeckSimHubPlugin

Keep you Stream Deck buttons in sync with SimHub (and your simulation)
GNU Lesser General Public License v3.0
51 stars 0 forks source link

Custom flag button and flashing buttons. #95

Closed pnbr0014 closed 1 month ago

pnbr0014 commented 6 months ago

Hey this plugin is amazing so far! I have a feature suggestion. Custom flag buttons allow us to change what is displayed for each flag type.

Also what's the possibility of being able to make a button flash so for example for ignition off state have it flash on and off at an interval set by the user. Or am I better off assigning a flashing gif to the off state?

Bruce.

pre-martin commented 6 months ago

Hi. Feature requests are always welcome - especially as most of you are so much deeper in sim racing than me.

The problem with the flag button is, that the Stream Deck UI only supports two button states, although the API supports more than two states. So I would have to implement the image handling (assigning images to all the button states) manually. Not impossible, but until now I was too lazy to implement that :-) But the topic just advanced on my priority list....

Flashing: Let me investigate this in more detail.

pnbr0014 commented 6 months ago

Sounds good! So how do you call up different flag colors right now? The stream deck supports dynamic icons like how their volume controls work so there must be a way to leverage that. My initial thought was to create an icon with the colour of the flag blue red yellow checkered etc. and let the stream deck use that as a payload but I have no idea how that would work since currently thy only support 2 icon states.

I just got the XL and I'm just very excited about everything it can do haha.

pre-martin commented 2 months ago

Good news: I started with your feature request "Custom flag buttons".

Not so good news: It is not possible to send animated GIFs from a plugin to the Stream Deck. Only the Stream Deck software itself can do this, if you use "Set [Icon] from File". But then this image is static and cannot be changed during runtime.

So flashing buttons will be more complicated to implement.

pre-martin commented 1 month ago
pre-martin commented 1 month ago

Closing this request, because both sub tasks have been implemented. They will be released with version 1.13.