MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setVisible

Method setVisible

Engine/source/postFx/postEffectVis.cpp:153–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void PostEffectVis::setVisible( bool visible )
154{
155 GuiCanvas *canvas = NULL;
156 if ( !Sim::findObject( "Canvas", canvas ) )
157 {
158 Con::errorf( "PostEffectVis::setVisible, Canvas was not found." );
159 return;
160 }
161
162 GuiControl *content = _getContentControl();
163
164 if ( visible && !content->isAwake() )
165 canvas->pushDialogControl( content, 100 );
166
167 if ( !visible && content->isAwake() )
168 canvas->popDialogControl( content );
169}
170
171void PostEffectVis::clear()
172{

Callers 2

onWindowClosedMethod · 0.45
postEffectVis.cppFile · 0.45

Calls 4

pushDialogControlMethod · 0.80
popDialogControlMethod · 0.80
findObjectFunction · 0.50
errorfFunction · 0.50

Tested by

no test coverage detected