Toggling Label Visibility
-
- Posts: 625
- Joined: Mon Nov 15, 2021 9:23 pm
Toggling Label Visibility
How would you toggle a text label from visible to invisible? Set its various colors to zero alpha? Seems crude, but there doesn't seem to be a method that toggles visibility.
Cyberwerks Heavy Industries -- viewforum.php?f=76
- honki-bobo
- Posts: 310
- Joined: Sat Nov 09, 2019 1:18 pm
Re: Toggling Label Visibility
A VoltageLabel extends VoltageComponent, which has the methods SetTransparency(double transparency) and SetVisible(boolean isVisible). Either one of these should do it.
-
- Posts: 625
- Joined: Mon Nov 15, 2021 9:23 pm
Re: Toggling Label Visibility
Ah, I didn't see that. Not quite used to the way the SDK docs are laid out yet. Thanks, honki-bobo.
Cyberwerks Heavy Industries -- viewforum.php?f=76