Commit 07a667a8 authored by haiyoucuv's avatar haiyoucuv

主页

parent 5fd9d915
This diff is collapsed.
resource/FreePowerPanel/圆圈.png

127 KB | W: | H:

resource/FreePowerPanel/圆圈.png

120 KB | W: | H:

resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
"name": "FailedPanel" "name": "FailedPanel"
}, },
{ {
"keys": "圆圈.png,开心收下.png", "keys": "FesRedPrizeBg.png",
"name": "FesRedPrizePanel"
},
{
"keys": "圆圈.png",
"name": "FreePowerPanel" "name": "FreePowerPanel"
}, },
{ {
...@@ -45,7 +49,7 @@ ...@@ -45,7 +49,7 @@
"name": "bonusTime" "name": "bonusTime"
}, },
{ {
"keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png", "keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,开心收下.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common" "name": "common"
}, },
{ {
......
...@@ -5,7 +5,11 @@ export const ResJson = { ...@@ -5,7 +5,11 @@ export const ResJson = {
"name": "FailedPanel" "name": "FailedPanel"
}, },
{ {
"keys": "圆圈.png,开心收下.png", "keys": "FesRedPrizeBg.png",
"name": "FesRedPrizePanel"
},
{
"keys": "圆圈.png",
"name": "FreePowerPanel" "name": "FreePowerPanel"
}, },
{ {
...@@ -45,7 +49,7 @@ export const ResJson = { ...@@ -45,7 +49,7 @@ export const ResJson = {
"name": "bonusTime" "name": "bonusTime"
}, },
{ {
"keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png", "keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,开心收下.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common" "name": "common"
}, },
{ {
......
import { Panel } from "../../module/views/Panel";
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
import Sprite = FYGE.Sprite;
import { PropType } from "../something/enum/PropType";
import { RES } from "../../module/RES";
import { changeScene } from "../../module/ctrls";
import { MapScene } from "../scene/map/MapScene";
import MouseEvent = FYGE.MouseEvent;
import Button = FYGE.Button;
import { Tools } from "../Tools";
const propImg = {
[PropType.BOOMS]: 'boomBtn.png',
[PropType.HAMMERS]: 'hammerBtn.png',
[PropType.STEPS]: 'stepBtn.png'
}
export class FesRedPrizePanel extends Panel {
get groupNames() {
return ['FesRedPrizePanel']
}
// get skinName() {
// return "SuccessPrizePanel"
// }
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
this.anchor.set(375, 812);
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 400, Ease.backOut)
.call(() => {
this.isShowing = false;
});
}
closeBtn: FYGE.Button;
btn: Button;
img: Sprite;
initUi() {
// const {stars, tool, prize} = this.data;
this.addChild(Tools.getSprite('FesRedPrizeBg.png'))
.position.set(53, 209);
this.addChild(new Button(RES.getRes('关闭按钮.png')))
.addEventListener(MouseEvent.CLICK, this.hidePanel, this)
.position.set(625, 431);
this.addChild(new Button(RES.getRes('开心收下.png')))
.addEventListener(MouseEvent.CLICK, this.hidePanel, this)
.position.set(165, 1045);
this.img = this.addChild(new Sprite());
this.img.anchorTexture.x = 0.5;
this.img.position.set(375, 693);
this.img.width = this.img.height = 252;
}
start(data) {
super.start();
}
initEvents() {
super.initEvents();
}
removeEvents() {
super.removeEvents();
}
}
...@@ -64,6 +64,7 @@ import { FirstPropGift } from '../something/uis/FirstPropGift'; ...@@ -64,6 +64,7 @@ import { FirstPropGift } from '../something/uis/FirstPropGift';
import { bonus_lottie } from '../lotties/bonus_lottie'; import { bonus_lottie } from '../lotties/bonus_lottie';
import { GDispatcher } from '../Main'; import { GDispatcher } from '../Main';
import { G_EVENT } from '../common/G_EVENT'; import { G_EVENT } from '../common/G_EVENT';
import { FestivalEle } from "../something/class/FestivalEle";
const aniClass = { const aniClass = {
"BoomAni": BoomAni, "BoomAni": BoomAni,
...@@ -759,6 +760,7 @@ export class PlayScene extends Scene { ...@@ -759,6 +760,7 @@ export class PlayScene extends Scene {
this.festivalTarget.x = 580; this.festivalTarget.x = 580;
this.festivalTarget.y = 115; this.festivalTarget.y = 115;
this.addChildAt(this.festivalTarget, 1); this.addChildAt(this.festivalTarget, 1);
this.festivalTarget.visible = false;
if (this.lattices[festivalIndex].element) { if (this.lattices[festivalIndex].element) {
this.lattices[festivalIndex].element.reset(ElementType.FESTIVALELE_BIG) this.lattices[festivalIndex].element.reset(ElementType.FESTIVALELE_BIG)
} else { } else {
...@@ -2828,13 +2830,28 @@ export class PlayScene extends Scene { ...@@ -2828,13 +2830,28 @@ export class PlayScene extends Scene {
//查看次数,原先不为0, //查看次数,原先不为0,
if (this.festivalTargetNum) { if (this.festivalTargetNum) {
this.festivalTargetNum--; this.festivalTargetNum--;
// this.festivalTarget.count--;
//@ts-ignore //@ts-ignore
var p = this.festivalTarget.localToGlobal({x: 40 * 0.8, y: 40 * 0.8}) var p = this.festivalTarget.localToGlobal({x: 40 * 0.8, y: 40 * 0.8})
this.addChild(FlyTargetAni(ElementType.FESTIVALELE_SMALL, [ele.x, ele.y], [p.x, p.y], () => { this.addChild(FlyTargetAni(ElementType.FESTIVALELE_SMALL, [ele.x, ele.y], [p.x, p.y], () => {
this.festivalTarget.count--; this.festivalTarget.count--;
})) }))
// this.addChild(
// EleMaskAni(
// ele,
// [ele.x, ele.y],
// 0,
// this,
// false,
// 1000,
// () => {
// this.festivalTarget.count--;
// }))
//完成了,发接口,到时需要修改,对于接口没成功的不设置 //完成了,发接口,到时需要修改,对于接口没成功的不设置
if (!this.festivalTargetNum) { if (!this.festivalTargetNum) {
console.log('红包全都消除完了');
// NetManager.ins.hc_redBombAward((success) => { // NetManager.ins.hc_redBombAward((success) => {
// if (success) this.redBombPanelMark = true; // if (success) this.redBombPanelMark = true;
// }); // });
......
...@@ -15,6 +15,7 @@ import Tween = FYGE.Tween; ...@@ -15,6 +15,7 @@ import Tween = FYGE.Tween;
import Ease = FYGE.Ease; import Ease = FYGE.Ease;
import { showPanel } from "../../../module/ctrls"; import { showPanel } from "../../../module/ctrls";
import { FreePowerPanel } from "../../panels/FreePowerPanel"; import { FreePowerPanel } from "../../panels/FreePowerPanel";
import { FesRedPrizePanel } from "../../panels/FesRedPrizePanel";
export class MapScene extends Scene { export class MapScene extends Scene {
private mapContainer: Container = null; private mapContainer: Container = null;
...@@ -57,6 +58,8 @@ export class MapScene extends Scene { ...@@ -57,6 +58,8 @@ export class MapScene extends Scene {
Tools.baseInfo.loginAddPower = false; Tools.baseInfo.loginAddPower = false;
} }
showPanel(FesRedPrizePanel);
} }
private updateMapCheck() { private updateMapCheck() {
......
...@@ -3,9 +3,10 @@ import { RES } from "../../../module/RES"; ...@@ -3,9 +3,10 @@ import { RES } from "../../../module/RES";
/** /**
* 节日元素 * 节日元素
* *
*/ */
export class FestivalEle extends FYGE.Container { export class FestivalEle extends FYGE.Container {
_type;
/** /**
* 是否要分裂了 * 是否要分裂了
*/ */
...@@ -291,4 +292,4 @@ class Status3 extends FYGE.Container { ...@@ -291,4 +292,4 @@ class Status3 extends FYGE.Container {
play(callback: Function) { play(callback: Function) {
} }
} }
\ No newline at end of file
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