Advertisement
Guest User

gui

a guest
Dec 10th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. [PHP]//#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. clearrows();
  56. addrow(0,"Red Sword");
  57. addrow(1,"Flintlock Pistol");
  58. setSelectedRow(0);
  59. //around here is the problem
  60. function onSelect(){
  61. getselectedrow();
  62. if (selectedrow = (1)){
  63. Price.text = "100";
  64. }
  65. if (selecttedrow = (0)){
  66. Price.text = "500";
  67. }
  68. }
  69. //to here
  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. }[/PHP]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement