Commit 68a669a0 authored by wjf's avatar wjf

l

parent 9c9de6b2
......@@ -24,12 +24,13 @@ export default class RedBagAni {
return 0;
}
}
let iconCount:number=0;
export const createRedBagIcon = (parent)=>{
const icon = RES.getRes('mapredbagicom_png'); /// TODO 洒出的图片
// const icon = RES.getRes('mapredbagicom_png'); /// TODO 洒出的图片
const icon:egret.Texture=RES.getRes('chocolate'+(iconCount++%4)+"_png");
const bmp = new egret.Bitmap(icon);
bmp.anchorOffsetX=32;
bmp.anchorOffsetY=33;
bmp.anchorOffsetX=icon.textureWidth/2//32;
bmp.anchorOffsetY=icon.textureHeight/2//33;
parent.addChild(bmp);
return bmp;
}
\ No newline at end of file
......@@ -47,7 +47,7 @@ export default class RedBombAlertPanel extends Panel {
playNoPrizeAni() {
loadSvga(getResPath() + 'resource/assets/svgas/redbomb_noprize.svga').then(async (mv: any) => {
mv.y = this.alertHeight + 100;
mv.y = this.alertHeight //+ 100;
//去掉文案
egret.Tween.get(this['group']).to({alpha: 0}, 300);
this.addChild(mv);
......@@ -117,7 +117,7 @@ export default class RedBombAlertPanel extends Panel {
setTimeout(()=>{
this.numsgroup.visible = isShow;
}, 1700);
mv.setImage("img_12064", img);
mv.setImage("img_5085", img);
}, 100)
});
}
......
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