It is currently April 27th, 2024, 4:43 pm
Disabled option in meters
-
- Posts: 478
- Joined: February 26th, 2011, 10:22 pm
Disabled option in meters
It would be handy to have an easy way to disable or enable LeftMouseUpActions, etc. of a given meter, without hiding the meter entirely. It would be handy if Disabled=1 would keep a meter visible, but disable its mouse actions. Maybe Disabled=1 disables all Actions, while Disabled=2 disables only click actions, leaving MouseOverActions active.
Last edited by Virginityrocks on April 12th, 2018, 11:48 am, edited 1 time in total.
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: Disabled option in meters
You can use !SetOption and change it to LeftMouseUpAction "[]"
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Disabled option in meters
I don't disagree. It can be a bit of code to use !SetOption to toggle a LeftMouseUpAction between "something" and "nothing", and that becomes a lot of code if you have multiple types of mouse actions on a meter. An easy way to turn off and on all mouse actions on a meter would be a nice touch. Maybe not "Disabled", as I think that is a bit confusing with the measure variant of that option.Virginityrocks wrote:It would be handy to have an easy way to disable or enable LeftMouseUpActions, etc. of a given meter, without hiding the meter entirely. It would be handy if Disabled=1 would keep a meter visible, but disable its mouse actions.
Perhaps MouseDisabled, with a default of 0.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Disabled option in meters
Right, but if you have a long, complicated LeftMouseUpAction, or worse, several different types of mouse actions on a meter, the !SetOption bang to turn them "back on" can get pretty beefy.fonpaolo wrote:You can use !SetOption and change it to LeftMouseUpAction "[]"
-
- Posts: 478
- Joined: February 26th, 2011, 10:22 pm
Re: Disabled option in meters
Exactly.jsmorley wrote:Right, but if you have a long, complicated LeftMouseUpAction, or worse, several different types of mouse actions on a meter, the !SetOption bang to turn them "back on" can get pretty beefy.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Disabled option in meters
This should probably be the entire suite of option/bangs like "hidden" has.
MouseDisabled 0/1
!DisableMouse
!EnableMouse
!ToggleMouse
MouseDisabled 0/1
!DisableMouse
!EnableMouse
!ToggleMouse
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: Disabled option in meters
I'm probably too patient...jsmorley wrote:Right, but if you have a long, complicated LeftMouseUpAction, or worse, several different types of mouse actions on a meter, the !SetOption bang to turn them "back on" can get pretty beefy.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Disabled option in meters
What we have to consider is if this means LeftMouseUpAction="" or LeftMouseUpAction=[]. They have different implications for mouse detection on meters that overlap. It also has implications with RightMouseUpAction, where you many not want turning "off" a custom skin menu to turn "on" the standard skin menu, or you might...
I would lean toward LeftMouseUpAction=[], as I think that is going to be the intent most of the time.
I would lean toward LeftMouseUpAction=[], as I think that is going to be the intent most of the time.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Disabled option in meters
Make no mistake, it's not that this is a big deal. Turning mouse actions on and off today is not that hard with !SetOption, but this is a reasonably easy, low-hanging-fruit change that can, in some edge cases, save a bit of work.fonpaolo wrote:I'm probably too patient...
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: Disabled option in meters
What I always do is to set up a line of commands, then I copy and paste, edit them accordingly, use "!Show" instead of "!Hide", "[]" instead of the command(s) and so on.
Even if the commands are many, it will take less than a minute.
...but this is only my opinion.
Even if the commands are many, it will take less than a minute.
...but this is only my opinion.