Advertisement
Guest User

Untitled

a guest
Dec 13th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 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. this.items = {
  55. {
  56. "Red Sword", 100
  57. }, {
  58. "Flintlock Pistol", 500
  59. }
  60. };
  61. clearrows();
  62. for (temp.i: thiso.items) {
  63. addrow(temp.n, temp.i[0]);
  64. temp.n++;
  65. }
  66. setselectedrow(0);
  67. }
  68. }
  69. new GuiShowImgCtrl("Icon") {
  70. x = 160;
  71. y = 50;
  72. width = 40;
  73. height = 200;
  74. image = "red-sword-icon.gif";
  75. }
  76. }
  77.  
  78. function Items.onSelect(temp.i) {
  79. Price.text = this.items[temp.i][1];
  80. }
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement