Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A button change another button state feature #427

Open
criquio opened this issue Aug 17, 2023 · 3 comments
Open

A button change another button state feature #427

criquio opened this issue Aug 17, 2023 · 3 comments
Labels
feature New feature or request todo We will work on this in the future

Comments

@criquio
Copy link

criquio commented Aug 17, 2023

Hi there! I'd like to suggest a feature that makes it possible to change one button state when pressing another button.
The situation: I have a button that start/ pause a scoreboard timer and another one that reset the timer. The problem is that when the start/pause button is on, I'd like it to be changed to off when pressing the reset button because when it's on, I have to press it twice in order to start the timer again. A workaround would be the possibility of changing its state by changing an obs source visibility so I'd set the reset timer button to change the source visibility to hidden and the start/pause button state would be changed to off.

EDIT: I know I could add an extra button so I'd have one to start the timer, another one to pause it and the third one to stop it but it would cost me an extra slot on Macro Deck page and my MD page is full and I wouldn't like to add extra row or column because I like its current design and buttons size.

EDIT 2: I found a way to overcome this issue. I added an event to the start/pause button so when I press the stop button, it turns a source to hidden in OBS. When this happen, the start/pause button state turns to off. And I added a command to start/pause button that turns the obs source to visible when pressed.

Well, I think that's all for now. Thanks!

@manuelmayer-dev manuelmayer-dev added feature New feature or request todo We will work on this in the future labels Oct 12, 2023
@RedLeader24
Copy link

Hi. This is also exactly what I've been wishing for, a button action which acts on other buttons selected from a list of created buttons, much like the "This action button". I've been creating a matrix of buttons for view selection in MSFS, and I'd like to show the active button. But when selecting another view, I'd like any active button to automatically switch off, so as to only have one view selected at a time. Thank you. Love the app.

@spockyto
Copy link

spockyto commented May 25, 2024

use variables
when pressing, set a var value.
example; position = 0, position = 1, position = 2...

in case of an event, set a desendace Variable Change / variable name
if varieble - variable name - equals (0,1,2,....)
your action
else
status button

images (spanish)
when pressing set variable value "camarapos"
image

in case of an event
image

this variable use a camara possiition layer
image

Sorry 4 my english

@RedLeader24
Copy link

RedLeader24 commented May 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request todo We will work on this in the future
Projects
None yet
Development

No branches or pull requests

4 participants