Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.08 KB | None | 0 0
  1. //#CLIENTSIDE
  2.   function Tools.onSelect(temp.i) {
  3.   if (row == 0){
  4.   Player.chat = this.items[temp.i][0] SPC "Selected";
  5.   }
  6.   }
  7.           this.tools = {
  8.           {
  9.             "Boots", 1, "no-icon.gif"
  10.           }, {
  11.             "a", 2, "no-icon.gif"
  12.           }
  13.         };
  14.  
  15. function onCreated() {
  16.   new GuiWindowCtrl("MyGUI_Window1") {
  17.     profile = GuiBlueWindowProfile;
  18.     clientrelative = true;
  19.     clientextent = "180,218";
  20.  
  21.     canmove = true;
  22.     canresize = true;
  23.     closequery = false;
  24.     destroyonhide = false;
  25.     text = "Tools";
  26.     x = 1170;
  27.  
  28.      new GuiScrollCtrl("Test_ListScroll") {
  29.    profile = GuiBlueScrollProfile;
  30.    x = 10;
  31.    y = 10;
  32.    width = 160;
  33.    height = 80;
  34.    hScrollBar = "dynamic";
  35.    vScrollBar = "dynamic";
  36.  
  37.     new GuiTextListCtrl("Test_List") {
  38.      profile = GuiBlueTextListProfile;
  39.      x = y = 0;
  40.      width = 140;
  41.      fitparentwidth = true;
  42.  
  43.      clearrows();
  44.       for (temp.i: thiso.tools) {
  45.           addrow(temp.n, temp.i[0]);
  46.           temp.n++;
  47.         }
  48.      setSelectedRow(0);
  49.       }
  50.     }
  51.   }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement