Advertisement
Guest User

Untitled

a guest
Dec 11th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.86 KB | None | 0 0
  1. //#CLIENTSIDE
  2. function onCreated() {
  3.  
  4.   this.items = {
  5.     {"Red Sword", 100, "Red-Sword-icon.gif"},
  6.     {"Flintlock Pistol", 500, "FlintLock-icon.gif"},
  7.     {"Blue Sword", 250, "Bluesword-icon.gif"}
  8.   };
  9.  
  10.   new GuiWindowCtrl(Window) {
  11.     profile = GuiBlueWindowProfile;
  12.     clientrelative = true;
  13.     clientextent = "244,182";
  14.  
  15.     canclose = false;
  16.     canmaximize = false;
  17.     canminimize = false;
  18.     canmove = true;
  19.     canresize = false;
  20.     closequery = false;
  21.     destroyonhide = false;
  22.     text = "Shop";
  23.     x = 452;
  24.     y = 199;
  25.    
  26.     new GuiTextCtrl(Price) {
  27.       profile = GuiBlueTextProfile;
  28.       height = 20;
  29.       text = "Price - 1500";
  30.       width = 67;
  31.       x = 124;
  32.       y = 24;
  33.     }
  34.  
  35.     new GuiPopUpMenuCtrl(DropDown_Currency) {
  36.       profile = GuiBluePopUpMenuProfile;
  37.       textprofile = GuiBlueTextListProfile;
  38.       scrollprofile = GuiBlueScrollProfile;
  39.       x = 121;
  40.       y = 2;
  41.       width = 120;
  42.       height = 20;
  43.       maxpopupheight = 200;
  44.       clearrows();
  45.       addrow(0,"Doubloons");
  46.       addrow(1,"Platinum");
  47.       setSelectedRow(0);
  48.     }
  49.  
  50.     new GuiScrollCtrl(List) {
  51.       profile = GuiBlueScrollProfile;
  52.       x = 1;
  53.       y = 1;
  54.       width = 118;
  55.       height = 179;
  56.       hScrollBar = "dynamic";
  57.       vScrollBar = "dynamic";
  58.       new GuiTextListCtrl(Items) {
  59.         profile = GuiBlueTextListProfile;
  60.         x = y = 0;
  61.         width = 140;
  62.         fitparentwidth = true;
  63.         clearrows();
  64.         for(temp.i : this.items){
  65.           addrow(temp.n, temp.i[0]);
  66.           temp.n ++;
  67.         }
  68.         setselectedrow(0);
  69.       }
  70.     }
  71.  
  72.     new GuiShowImgCtrl(Icon) {
  73.       x = 160;
  74.       y = 50;
  75.       width = 40;
  76.       height = 200;
  77.       image = "red-sword-icon.gif";
  78.     }
  79.   }
  80. }
  81.  
  82. function items.onSelect(temp.i){
  83.   Price.text = this.items[temp.i][1];
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement