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

Method loadFromPath

Engine/source/gui/worldEditor/editorIconRegistry.cpp:48–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void EditorIconRegistry::loadFromPath( const String &path, bool overwrite )
49{
50 AbstractClassRep *classRep = AbstractClassRep::getClassList();
51 while ( classRep )
52 {
53 String iconFile = String::ToString( "%s%s", path.c_str(), classRep->getClassName() );
54 add( classRep->getClassName(), iconFile.c_str(), overwrite );
55 classRep = classRep->getNextClass();
56 }
57
58 String defaultIconFile = path + "default";
59
60 mDefaultIcon.set( defaultIconFile,
61 &GFXDefaultPersistentProfile,
62 avar("%s() - mIcons[] (line %d)",
63 __FUNCTION__, __LINE__) );
64}
65
66void EditorIconRegistry::add( const String &className, const String &imageFile, bool overwrite )
67{

Callers 1

Calls 6

avarFunction · 0.85
getNextClassMethod · 0.80
addFunction · 0.50
c_strMethod · 0.45
getClassNameMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected