Advertisement
Guest User

Untitled

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