Graal Pastebin
New PastePasted on January 29, 2012.
View the raw file
this.("weapon"@temp.v) = new GuiShowImgCtrl("weaponImg"@temp.v); this.("weapon"@temp.v).image = this.search_list[temp.v].image; this.("weapon"@temp.v).x = new_x_position + 15.5; this.("weapon"@temp.v).y = new_y_position + 35; this.("weapon"@temp.v).layer = 6; this.("weapon"@temp.v).mode = 1; this.("weapon"@temp.v).hint = "loading..."; this.("weapon"@temp.v).showhints(); this.("weapon"@temp.v).width = 32; this.("weapon"@temp.v).height = 32; this.("weapon"@temp.v).wep = this.search_list[temp.v].name; ("ItemWindow_" @ item).addControl(this.("weapon"@temp.v)); thiso.catchevent(this.("weapon"@temp.v), "onMouseDown", "leftMouse"); thiso.catchevent(this.("weapon"@temp.v), "onRightMouseDown", "rightMouse"); thiso.catchevent(this.("weapon"@temp.v), "onMouseEnter", "hoverMouseEnter"); thiso.catchevent(this.("weapon"@temp.v), "onMouseLeave", "hoverMouseLeave"); //giving temp.v the correct value to search through a list of weapons } function rightMouse(obj) { if (!this.clicking) { if (!this.draggingInv) { this.clicking = true; this.clickedright = obj.wep; new GuiPopUpMenuCtrl("Item_Menu") { profile = "GuiBluePopUpMenuProfile"; textprofile = "Armageddon_TextList"; scrollprofile = "Armageddon_Scroll"; width = 20; clearrows(); addRow(0, "Sell"); addRow(1, "Drop"); open(mousescreenx, mousescreeny); } } } else { this.clicking = false; } } function Item_Menu.onSelect(entryid, text) { switch (text) { case "Sell": { findweapon("-Player/Shop").bringInSell(temp.sendtosell); break; } case "Drop": { triggerServer("gui", name, "menuItemDrop", this.clickedright); break; } } Item_Menu.destroy(); }