Commit cd4884a2 authored by zjz1994's avatar zjz1994

调整红包炸弹大小

parent ecd9bc99
......@@ -1246,11 +1246,11 @@ export default class MapScene extends Scene {
}
onTap_signBtn() {
NetManager.ins.hc_redBombAward((success) => {
PanelCtrl.instance.show('RedBombAlert');
})
// NetManager.ins.hc_redBombAward((success) => {
// PanelCtrl.instance.show('RedBombAlert');
// })
return;
// return;
NetManager.ins.getSignInfo(() => {
PanelCtrl.instance.show('sign');
}, window['signActivityId'])
......
......@@ -166,13 +166,19 @@ export default class RedBombAlertPanel extends Panel {
if(!this.isShow){
let changeimg = this.getchangeImg();
if(changeimg){
changeimg.anchorOffsetX = 500/2;
changeimg.anchorOffsetY = 233/2;
//500*233
var imgwid = 550;
var imghei = 256;
changeimg.anchorOffsetX = imgwid/2;
changeimg.anchorOffsetY = imghei/2;
var cx = changeimg.x;
var cy = changeimg.y;
cx += 500/2;
cy += 500/2;
changeimg.width = imgwid;
changeimg.height = imghei;
changeimg.x = cx;
changeimg.y = cy;
......@@ -216,7 +222,7 @@ export default class RedBombAlertPanel extends Panel {
var sy = changeimg.y;
// sx += 500/2;
sy += 233/2;
sy += changeimg.scaleY*233/2;
changeimg.x = 382;
changeimg.y = sy;
......
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