View Single Post
  #1  
Old 04-14-2012, 08:52 PM
Entrok Entrok is offline
Registered User
Join Date: Sep 2009
Location: Sweden
Posts: 51
Entrok is on a distinguished road
Send a message via MSN to Entrok
Inventory Question

Im trying to learn how to make a inventory based on loading .txt/.arc files and sofar so good, but when i want to place out the weapons that are available i dident know how to do it, so i checked forums but dident find so much about it.

I did check in to Stonehenge how they had done theirs but the prob is that they only have 1 row, with 4 items down like i show in attached file 1.

What im trying to do is to list the items like attached file 2.

What i have tryed to use/modify atm is this:

PHP Code:
  if (this.curtab == NILthis.curtab "weapons";
  
this.gsk getstringkeys("clientr." this.curtab "_");
  

  for (
temp.0temp.min(this.gsk.size(), 5); temp.g++) 
  {  
    
// Draw the icons in the inventory that are currently visible
    
temp.draw clientr.(@ this.curtab "_" this.gsk[temp.this.menuscroll])[3];
    
    
drawImg(502 temp.2temp.draw31 temp.35110 temp.356);
    
temp.writ clientr.(@ this.curtab "_" this.gsk[temp.this.menuscroll])[1];
    
drawText(502 temp.162131 temp.35temp.font"r"temp.writ7.51111);
    if (
mousescreenx in |3163|) 
    {
      if (
mousescreeny in |110 temp.35142 temp.35|) 
      {  
        
// Hovering over an item in the inventory
        
temp.writ clientr.(@ this.curtab "_" this.gsk[temp.this.menuscroll])[2];
        
drawText(500mousescreenxmousescreeny 8temp.font"bc"temp.writ9.50001);
        
drawImg(501"light4.png", -1762 temp.358.7.7.7.7.7);
      }
    }
  } 
How would i make it to list more then 1 row?
Attached Images
  
Reply With Quote