View Single Post
  #3  
Old 09-28-2006, 09:09 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Stefan View Post
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.0temp.temp.tholder.size(); temp.I++)
      {
        
temp.hold temp.tholder[temp.I];
        if (
temp.hold.substring(temp.hold.pos("=") + 1, -4in 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.

Last edited by KuJi; 09-29-2006 at 06:17 AM..
Reply With Quote