Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#CLIENTSIDE
- function onCreated() {
- new GuiWindowCtrl("Window") {
- profile = GuiBlueWindowProfile;
- clientrelative = true;
- clientextent = "244,182";
- canclose = false;
- canmaximize = false;
- canminimize = false;
- canmove = true;
- canresize = false;
- closequery = false;
- destroyonhide = false;
- text = "Shop";
- x = 452;
- y = 199;
- new GuiTextCtrl("Price") {
- profile = GuiBlueTextProfile;
- height = 20;
- text = "Price - 1500";
- width = 67;
- x = 124;
- y = 24;
- }
- new GuiPopUpMenuCtrl("DropDown_Currency") {
- profile = GuiBluePopUpMenuProfile;
- textprofile = GuiBlueTextListProfile;
- scrollprofile = GuiBlueScrollProfile;
- x = 121;
- y = 2;
- width = 120;
- height = 20;
- maxpopupheight = 200;
- clearrows();
- addrow(0,"Doubloons");
- addrow(1,"Platinum");
- setSelectedRow(0);
- }
- new GuiScrollCtrl("List") {
- profile = GuiBlueScrollProfile;
- x = 1;
- y = 1;
- width = 118;
- height = 179;
- hScrollBar = "dynamic";
- vScrollBar = "dynamic";
- new GuiTextListCtrl("Items") {
- profile = GuiBlueTextListProfile;
- x = y = 0;
- width = 140;
- fitparentwidth = true;
- }
- }
- new GuiShowImgCtrl("Icon") {
- x = 160;
- y = 50;
- width = 40;
- height = 200;
- image = "red-sword-icon.gif";
- }
- }
- this.items = {
- {"Red Sword", 100, "Red-Sword-icon.gif"},
- {"Flintlock Pistol", 500, "FlintLock-icon.gif"},
- {"Blue Sword", 250, "Bluesword-icon.gif"}
- };
- clearrows();
- for(temp.i : this.items){
- addrow(temp.n, temp.i[0]);
- temp.n ++;
- }
- setselectedrow(0);
- function items.onSelect(temp.i){
- Price.text = this.items[temp.i][1];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement