Adding Icon to guiTreeViewCtrl
by Nathan Bowhay - ESAL · in Torque Game Engine · 01/26/2007 (9:43 pm) · 0 replies
I took a look at both guiTreeViewCtrl.h and .cc and it doesn't seem to bad. I tried adding another class/icon to the enum Icons I then added it to getIcon so that it could look it up by the class.
I compiled and tried creating that object and it crashed.
Am I missing something?
Can anyone tell me how to add an icon to the iconTable and have it be associated with a specif class?
Note: using 1.4 soon to be using 1.5, but having some lighting pack conflicts.
I wish there was a console function you could call anywhere in script that would set a given icon to a given class. So that whenever you create an object of that type and add it to the mission it uses that icon in the EditorTree!
I compiled and tried creating that object and it crashed.
Am I missing something?
Can anyone tell me how to add an icon to the iconTable and have it be associated with a specif class?
Note: using 1.4 soon to be using 1.5, but having some lighting pack conflicts.
I wish there was a console function you could call anywhere in script that would set a given icon to a given class. So that whenever you create an object of that type and add it to the mission it uses that icon in the EditorTree!