Commit 26ce1641 authored by 13732208043's avatar 13732208043

茶叶更新

parent 1ac3d065
This diff is collapsed.
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
function injectProps(p) { function injectProps(p) {
engine.injectProp(props, p); engine.injectProp(props, p);
} }
//# sourceMappingURL=props.js.map
function getTexture(uuid) { function getTexture(uuid) {
return engine.Texture.from(getAssetByUUID(uuid).uuid); return engine.Texture.from(getAssetByUUID(uuid).uuid);
...@@ -29,6 +30,7 @@ ...@@ -29,6 +30,7 @@
} }
function showLog(abjname, obj) { function showLog(abjname, obj) {
} }
//# sourceMappingURL=utils.js.map
var GameView = (function (_super) { var GameView = (function (_super) {
tslib.__extends(GameView, _super); tslib.__extends(GameView, _super);
...@@ -293,8 +295,9 @@ ...@@ -293,8 +295,9 @@
this.basketLevel = 0; this.basketLevel = 0;
var pickTeaSVGA = this.basketSvgaGroup[this.basketLevel]; var pickTeaSVGA = this.basketSvgaGroup[this.basketLevel];
var templength = pickTeaSVGA.children.length; var templength = pickTeaSVGA.children.length;
if (this.allFrames < templength) if (this.allFrames < templength) {
pickTeaSVGA.removeChildAt(10); pickTeaSVGA.removeChildAt(10);
}
var originframes = pickTeaSVGA.children[7]; var originframes = pickTeaSVGA.children[7];
if (!originframes) { if (!originframes) {
return; return;
...@@ -311,22 +314,18 @@ ...@@ -311,22 +314,18 @@
pickTeaSVGA.addChildAt(this.teaHalfImg, 10); pickTeaSVGA.addChildAt(this.teaHalfImg, 10);
}; };
GameView.prototype.setPickTeaLevel = function (level) { GameView.prototype.setPickTeaLevel = function (level) {
var _this = this;
this.basketLevel = level; this.basketLevel = level;
var pickTeaSVGA = this.basketSvgaGroup[level]; var pickTeaSVGA = this.basketSvgaGroup[level];
pickTeaSVGA.visible = true; pickTeaSVGA.visible = true;
console.log('总共有多少', pickTeaSVGA.children.length);
setTimeout(function () {
var originframes = pickTeaSVGA.children[7]; var originframes = pickTeaSVGA.children[7];
_this.teaHalfImg.visible = true; this.teaHalfImg.visible = true;
var teaBucketframes = JSON.parse(JSON.stringify(originframes.frames)); var teaBucketframes = JSON.parse(JSON.stringify(originframes.frames));
if (_this.teaHalfImg) { if (this.teaHalfImg) {
_this.teaHalfImg['frames'] = teaBucketframes; this.teaHalfImg['frames'] = teaBucketframes;
} }
showLog(_this.teaHalfImg); showLog(this.teaHalfImg);
pickTeaSVGA.addChildAt(_this.teaHalfImg, 10); pickTeaSVGA.addChildAt(this.teaHalfImg, 10);
pickTeaSVGA.gotoAndPlay(1, true); pickTeaSVGA.gotoAndPlay(1, true);
}, 300);
}; };
GameView.prototype.handGrasp = function () { GameView.prototype.handGrasp = function () {
var that = this; var that = this;
...@@ -412,6 +411,7 @@ ...@@ -412,6 +411,7 @@
}; };
return GameWrapper; return GameWrapper;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=GameWrapper.js.map
function index (props) { function index (props) {
prepareProps(); prepareProps();
...@@ -419,6 +419,7 @@ ...@@ -419,6 +419,7 @@
var instance = new GameWrapper(); var instance = new GameWrapper();
return instance; return instance;
} }
//# sourceMappingURL=index.js.map
return index; return index;
......
This diff is collapsed.
...@@ -178,7 +178,7 @@ export default class GameView extends engine.Container { ...@@ -178,7 +178,7 @@ export default class GameView extends engine.Container {
// setTimeout(() => { // setTimeout(() => {
// this.setPickTeaLevel(1) // this.setPickTeaLevel(1)
// this.setTeaNum({ totalNum: 10, nowNum: 0, serverData: 1585290768011 }) // this.setTeaNum({ totalNum: 150, nowNum: 60, serverData: 1585290768011 })
// //this.setTeaNum({ totalNum: 100, nowNum: 0 }) // //this.setTeaNum({ totalNum: 100, nowNum: 0 })
// }, 500) // }, 500)
// setTimeout(() => { // setTimeout(() => {
...@@ -457,8 +457,10 @@ export default class GameView extends engine.Container { ...@@ -457,8 +457,10 @@ export default class GameView extends engine.Container {
let pickTeaSVGA = this.basketSvgaGroup[this.basketLevel]; let pickTeaSVGA = this.basketSvgaGroup[this.basketLevel];
let templength = pickTeaSVGA.children.length; let templength = pickTeaSVGA.children.length;
//console.log('templength',templength) //console.log('templength',templength)
if (this.allFrames < templength) if (this.allFrames < templength) {
pickTeaSVGA.removeChildAt(10); pickTeaSVGA.removeChildAt(10);
}
let originframes = pickTeaSVGA.children[7]; let originframes = pickTeaSVGA.children[7];
if (!originframes) { if (!originframes) {
return; return;
...@@ -486,11 +488,11 @@ export default class GameView extends engine.Container { ...@@ -486,11 +488,11 @@ export default class GameView extends engine.Container {
this.basketLevel = level; this.basketLevel = level;
let pickTeaSVGA = this.basketSvgaGroup[level]; let pickTeaSVGA = this.basketSvgaGroup[level];
pickTeaSVGA.visible = true; pickTeaSVGA.visible = true;
console.log('总共有多少', pickTeaSVGA.children.length) //console.log('总共有多少', pickTeaSVGA.children.length)
//showLog('littleTea url') //showLog('littleTea url')
//showLog(this.teaHalfImg['_source']) //showLog(this.teaHalfImg['_source'])
//需要svga缓存结束 //需要svga缓存结束
setTimeout(() => { //setTimeout(() => {
showLog('延迟500ms') showLog('延迟500ms')
let originframes = pickTeaSVGA.children[7]; let originframes = pickTeaSVGA.children[7];
...@@ -506,7 +508,7 @@ export default class GameView extends engine.Container { ...@@ -506,7 +508,7 @@ export default class GameView extends engine.Container {
showLog(this.teaHalfImg); showLog(this.teaHalfImg);
pickTeaSVGA.addChildAt(this.teaHalfImg, 10) pickTeaSVGA.addChildAt(this.teaHalfImg, 10)
pickTeaSVGA.gotoAndPlay(1, true); pickTeaSVGA.gotoAndPlay(1, true);
}, 300) //}, 300)
} }
handGrasp() { handGrasp() {
showLog('handGrasp') showLog('handGrasp')
......
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