Is there anyway to disable a component without reducing the alpha #737
-
|
I'm trying to make a whole bunch of modulators display parameters, but I essentially want them read only. I'm disabling components to do it, but it reduces the alpha of all the modulators making them harder to read. Is there a way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Disabled, as in not responding to mouse events? You could create a function for every mouse event you want to disable. For instance, you want to disable the mouseDown: Now the component should not respond to the mousedown event. Rinse and repeat for every component or event. I noticed during testing that it will disable the mouse events in the editor itself, too. Clicking the component won't select it. You should now drag from the side over the component to select it. |
Beta Was this translation helpful? Give feedback.
-
|
A transparent component on a higher layer may work, but I'd need to enable and disable the layer when I switch tabs, which is doable. I do like the mouse down disable though, that's an elegant solution. |
Beta Was this translation helpful? Give feedback.
-
|
Here's one way to do it using uiComponent and a table hide unchecked rows: Babooshka Freeze Element_1_0.zip When you select a new tab, you would hide/show the layer containing the masking uiComponents. I haven't implemented that. |
Beta Was this translation helpful? Give feedback.

That’s a great idea!
I was going to suggest that you could have a transparent uiComponent sitting in a layer above the controls, and then paint a Rectangle object over that control when you disable it. The Rectangle could be painted with a slightly transparent RGBA color or left transparent.