MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / _getContentControl

Method _getContentControl

Engine/source/postFx/postEffectVis.cpp:310–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310GuiControl* PostEffectVis::_getContentControl()
311{
312 if ( mContent == NULL )
313 {
314 GuiCanvas *canvas = NULL;
315 if ( !Sim::findObject( "Canvas", canvas ) )
316 {
317 AssertFatal( false, "PostEffectVis::_getContentControl, Canvas not found." );
318 return NULL;
319 }
320
321 mContent = new GuiControl();
322 mContent->setPosition( 0, 0 );
323 mContent->setExtent( 1024, 768 );
324 mContent->setDataField( StringTable->insert( "noCursor" ), NULL, "1" );
325 mContent->setDataField( StringTable->insert( "profile" ), NULL, "GuiModelessDialogProfile" );
326 mContent->registerObject( "PfxVisContent" );
327
328 canvas->pushDialogControl( mContent, 100 );
329 }
330
331 return mContent;
332}
333
334void PostEffectVis::_setDefaultCaption( VisWindow &vis, U32 texIndex )
335{

Callers

nothing calls this directly

Calls 7

setExtentMethod · 0.80
pushDialogControlMethod · 0.80
findObjectFunction · 0.50
setPositionMethod · 0.45
setDataFieldMethod · 0.45
insertMethod · 0.45
registerObjectMethod · 0.45

Tested by

no test coverage detected