bitfocus / companion-module-generic-swp08

MIT License
5 stars 3 forks source link

variable with the source name of selected destination #4

Closed daniep01 closed 3 years ago

daniep01 commented 3 years ago

Is this a single global variable called current_source or is it a long list of variables, one for every destination?

evenover commented 3 years ago

This would be a "Current Source".

daniep01 commented 3 years ago

What would this variable contain when the destination has multiple sources on different levels? Or should there be a separate variable for each level?

evenover commented 3 years ago

It should be the source of the selected destination and selected level.

If multiple levels are selected it should be level 1.

daniep01 commented 3 years ago

I've added this functionality for both source name and source number. There is a variable for every level as defined in the module config as doing it only on selected level(s) would be quite messy I think.

https://we.tl/t-gM9Firsk5K

evenover commented 3 years ago

This is working. To get the functionality i want i can just add "change button text" on the destination select button to select the right variable on the "Source of"-button.