Advertisement
80LK

Untitled

Dec 30th, 2019
1,279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. var guitest = new UI.StandartWindow({
  2. standart: {
  3. header: {
  4. text: {
  5. text: "Shop"
  6. }
  7. },
  8. inventory: {
  9. standart: true
  10. },
  11. background: {
  12. standart: true
  13. }
  14. },
  15. drawing: [{
  16. type: "line",
  17. x1: 0,
  18. y1: 70,
  19. x2: 1000,
  20. y2: 70,
  21. width: 1.5
  22. }],
  23. elements: {
  24. "slotBuy_0": {
  25. type: "slot",
  26. x: 360,
  27. y: 90,
  28. size: 50,
  29. source:{
  30. id:279,
  31. count:1
  32. },
  33. clicker:{
  34. onClick:function(c,a,w){
  35. alert("Test");
  36. var a = c.getSlot("slotSell_0");
  37. if(a.count >= 2){
  38. Player.addItemInventory(279, 1);
  39. a.count -= 2;
  40. с.refreshSlots();
  41. }
  42. }
  43. }
  44. },
  45. "slotPrice_0": {
  46. type: "slot",
  47. x: 420,
  48. y: 90,
  49. size: 50,
  50. source:{
  51. id:388,
  52. count:2
  53. },
  54. visual:true
  55. },
  56. "slotSell_0": {
  57. type: "slot",
  58. x: 480,
  59. y: 90,
  60. size: 50,
  61. isValid:function(id, count, data){
  62. return id == 388;
  63. }
  64. }
  65. }
  66. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement