Quote:
Originally Posted by Stefan
You can either use icons (setIconSize() etc.), and you update them when you click the node or the node is expanded,
or you use the profile.bitmap, which can contain any number of sub images, separated by the color of the first pixel in the image (upper-left corner), check treeview_serverlisticons.png. The node then automatically chooses one of the images based on node.image, node.selectedimage, node.expandedimage and node.expandedselectedimage which specify the number of the image that should be used.
|
Okay okay.. this is my problem now:
PHP Code:
// Add Ranks
temp.tholder = temp.gangranks.savevarstoarray(true);
for (temp.I = 0; temp.I < temp.tholder.size(); temp.I++)
{
temp.hold = temp.tholder[temp.I];
if (temp.hold.substring(temp.hold.pos("=") + 1, -4) in client.gmembers)
{
with (Gang_Ranks_Tree.getnode(temp.tholder[temp.I].substring(temp.tholder[temp.I].pos("=") + 1, -4)))
{
image = selectedimage = 2;
}
}
}
Thing is.. I can't get the image to change =(. The variable for that.. for example would be KuJi but it's not the direct location and I've tried to think of 150 ways to get:
In Members:
1=KuJi (which is basically rank ids in the tree view or whatever)
In Ranks:
1=General Armii
1.1=General-Polkovnik
1.2=General-Lieutenant
1.3=General-Major
That would add me under General Armii which is fine. I just dont know how I can check the full length and use getnodebypath("STR", "STR"); or whatever =(.
If you have an idea to end up searching
5.4.4.8.2.6.8.3 (infinite really.. depends on how many ranks) to get the full paths.. please post it.