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

Method setProfileProt

Engine/source/gui/core/guiControl.cpp:1632–1644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1630//-----------------------------------------------------------------------------
1631
1632bool GuiControl::setProfileProt( void *object, const char *index, const char *data )
1633{
1634 GuiControl* ctrl = static_cast<GuiControl*>( object );
1635 GuiControlProfile *prof = dynamic_cast<GuiControlProfile*>( Sim::findObject( data ) );
1636 if ( prof == NULL )
1637 return false;
1638
1639 // filter through our setter, for consistency
1640 ctrl->setControlProfile( prof );
1641
1642 // ask the console not to set the data, because we've already set it
1643 return false;
1644}
1645
1646//-----------------------------------------------------------------------------
1647

Callers

nothing calls this directly

Calls 2

setControlProfileMethod · 0.80
findObjectFunction · 0.50

Tested by

no test coverage detected