Page 1 of 1
Toggling Label Visibility
Posted: Sat Feb 05, 2022 8:37 pm
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.
Re: Toggling Label Visibility
Posted: Sun Feb 06, 2022 11:23 am
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.
Re: Toggling Label Visibility
Posted: Sun Feb 06, 2022 1:17 pm
by UrbanCyborg
Ah, I didn't see that. Not quite used to the way the SDK docs are laid out yet. Thanks, honki-bobo.