Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var guitest = new UI.StandartWindow({
- standart: {
- header: {
- text: {
- text: "Shop"
- }
- },
- inventory: {
- standart: true
- },
- background: {
- standart: true
- }
- },
- drawing: [{
- type: "line",
- x1: 0,
- y1: 70,
- x2: 1000,
- y2: 70,
- width: 1.5
- }],
- elements: {
- "slotBuy_0": {
- type: "slot",
- x: 360,
- y: 90,
- size: 50,
- source:{
- id:279,
- count:1
- },
- clicker:{
- onClick:function(c,a,w){
- alert("Test");
- var a = c.getSlot("slotSell_0");
- if(a.count >= 2){
- Player.addItemInventory(279, 1);
- a.count -= 2;
- с.refreshSlots();
- }
- }
- }
- },
- "slotPrice_0": {
- type: "slot",
- x: 420,
- y: 90,
- size: 50,
- source:{
- id:388,
- count:2
- },
- visual:true
- },
- "slotSell_0": {
- type: "slot",
- x: 480,
- y: 90,
- size: 50,
- isValid:function(id, count, data){
- return id == 388;
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement