Commit 4f05672b authored by wjf's avatar wjf

l

parent f35c4a9c
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"ename": "", "ename": "",
"userNick": "wmmmmm", "userNick": "wmmmmm",
"name": "90关奖品4", "name": "90关奖品4",
"_id": "AAHuCvE-ALiIWXYsJuTb5S4W1594715684002" "_id": "123"
}, },
"success": true, "success": true,
"message": "成功" "message": "成功"
......
resource/FreePowerPanel/圆圈.png

165 KB | W: | H:

resource/FreePowerPanel/圆圈.png

145 KB | W: | H:

resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
  • 2-up
  • Swipe
  • Onion skin
let MaxRectsPacker = require("maxrects-packer").MaxRectsPacker;
const options = {
smart: true,
pot: true,
square: false,
allowRotation: true,
tag: false,
border: 5
}; // Set packing options
let packer = new MaxRectsPacker(4096, 4096, 2, options); // width, height, padding, options
let input = [ // any object with width & height is OK since v2.1.0
{width: 600, height: 20, name: "tree"},
{width: 600, height: 20, name: "flower"},
// {width: 2000, height: 2000, name: "oversized background"},
// {width: 1000, height: 1000, name: "background"},
// {width: 1000, height: 1000, name: "overlay"}
];
packer.addArray(input); // Start packing with input array
// packer.next(); // Start a new packer bin
packer.addArray(input.slice()); // Adding to the new bin
packer.bins.forEach(bin => {
// console.log(bin.rects);
});
// Reuse packer
// let bins = packer.save();
// packer.load(bins);
console.log(packer.bins)
// packer.addArray(input);
\ No newline at end of file
...@@ -116,7 +116,8 @@ export class Tools { ...@@ -116,7 +116,8 @@ export class Tools {
// resolve(res);//数据按照gameData的更新,不返回 // resolve(res);//数据按照gameData的更新,不返回
resolve(true) resolve(true)
} else { } else {
reject() // reject()
resolve(false)
} }
}) })
}) })
......
...@@ -110,6 +110,12 @@ class PrizeItem extends FYGE.Container implements FYGE.IScrollListItem { ...@@ -110,6 +110,12 @@ class PrizeItem extends FYGE.Container implements FYGE.IScrollListItem {
this.prizeImage = this.addChild(new FYGE.Sprite()); this.prizeImage = this.addChild(new FYGE.Sprite());
this.prizeImage.width = this.prizeImage.height = 101; this.prizeImage.width = this.prizeImage.height = 101;
this.prizeImage.position.set(4, 4); this.prizeImage.position.set(4, 4);
//考虑需不需要加,如果到时性能不行再去掉
var mask = this.addChild(new FYGE.Shape())
mask.beginFill(0);
mask.drawRoundedRect(4, 4, 101, 101, 10);
mask.endFill();
this.prizeImage.mask = mask
//名字 //名字
this.nameTxt = this.addChild(Tools.getText( this.nameTxt = this.addChild(Tools.getText(
"", "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment