Toggling Label Visibility

Post Reply
UrbanCyborg
Posts: 625
Joined: Mon Nov 15, 2021 9:23 pm

Toggling Label Visibility

Post by UrbanCyborg »

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
User avatar
honki-bobo
Posts: 310
Joined: Sat Nov 09, 2019 1:18 pm

Re: Toggling Label Visibility

Post by honki-bobo »

A VoltageLabel extends VoltageComponent, which has the methods SetTransparency(double transparency) and SetVisible(boolean isVisible). Either one of these should do it.
Image
Monkey Business Audio
Modules - Music - Twitter - YouTube
UrbanCyborg
Posts: 625
Joined: Mon Nov 15, 2021 9:23 pm

Re: Toggling Label Visibility

Post by UrbanCyborg »

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
Post Reply

Return to “Module Designer”