Commit 06af51f8 authored by zjz1994's avatar zjz1994

换皮

parent a2e60777
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
"name": "helpGroup" "name": "helpGroup"
}, },
{ {
"keys": "virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg,adsmask_png,nsad2_png,nsad1_png", "keys": "virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg,adsmask_png,nsad2_png,nsad1_png,hbchuanguan2_png,redAlert_btn1_png",
"name": "preload" "name": "preload"
} }
], ],
...@@ -5416,6 +5416,16 @@ ...@@ -5416,6 +5416,16 @@
"name": "nsad1_png", "name": "nsad1_png",
"type": "image", "type": "image",
"url": "assets/ad/nsad1.png" "url": "assets/ad/nsad1.png"
},
{
"name": "hbchuanguan2_png",
"type": "image",
"url": "assets/redbombalert/hbchuanguan2.png"
},
{
"name": "redAlert_btn1_png",
"type": "image",
"url": "assets/redbombalert/redAlert_btn1.png"
} }
] ]
} }
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="RedBombAlertSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="RedBombAlertSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="group" y="470" horizontalCenter="0"> <e:Group id="group" y="470" horizontalCenter="0" visible="false">
<e:Image source="redbombalert文案_png" y="0" horizontalCenter="0"/> <e:Image source="redbombalert文案_png" y="0" horizontalCenter="0"/>
<e:Label id="tips" text="今日还有2个红包在其他关卡等你哦~" y="79" textColor="0xffe9c0" x="0"/> <e:Label id="tips" text="今日还有2个红包在其他关卡等你哦~" y="79" textColor="0xffe9c0" x="0"/>
</e:Group> </e:Group>
<e:Group id="btn" y="985" horizontalCenter="0" visible="false"> <e:Group id="btn" y="985" horizontalCenter="0">
<e:Image source="redAlert_btn_png" y="0" x="0"/> <e:Image id="btn1" y="0" source="redAlert_btn1_png" horizontalCenter="0" visible="false"/>
<e:Label id="btnLabel" text="愉快收下" y="30" size="38" stroke="2" strokeColor="0x2f7df9" fontFamily="FZY3JW" x="103" bold="true"/> <e:Image id="btn2" source="hbchuanguan2_png" horizontalCenter="0" visible="false"/>
<e:Label id="btnLabel" text="愉快收下" y="30" size="38" stroke="2" strokeColor="0x2f7df9" fontFamily="FZY3JW" x="103" bold="true" visible="false"/>
</e:Group> </e:Group>
<e:Group id="numsgroup" x="410" y="350" scaleX="1.5" scaleY="1.5" visible="false"> <e:Group id="numsgroup" x="410" y="350" scaleX="1.5" scaleY="1.5" visible="false">
<e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0" scaleX="1" scaleY="1"/> <e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0" scaleX="1" scaleY="1"/>
......
...@@ -500,7 +500,7 @@ export default class MainScene extends Scene { ...@@ -500,7 +500,7 @@ export default class MainScene extends Scene {
// window['gm'] = this.gm; // window['gm'] = this.gm;
//第几关 //第几关
this.chapter = (data && data.chapter) ? data.chapter : 1; this.chapter = (data && data.chapter) ? data.chapter : 1;
this.chapter = 8; this.chapter = 1;
//关卡数据 //关卡数据
this.chapterData = getChapterData(this.chapter); this.chapterData = getChapterData(this.chapter);
//初始化目标信息 //初始化目标信息
...@@ -1564,7 +1564,7 @@ export default class MainScene extends Scene { ...@@ -1564,7 +1564,7 @@ export default class MainScene extends Scene {
//添加节日红包目标,todo,记得测试红包 //添加节日红包目标,todo,记得测试红包
this.festivalTarget = new FestivalTarget(this.festivalTargetNum); this.festivalTarget = new FestivalTarget(this.festivalTargetNum);
this.festivalTarget.x = 580; this.festivalTarget.x = 580;
this.festivalTarget.y = 115; this.festivalTarget.y = 207.5;
this.festivalContainer.removeChildren(); this.festivalContainer.removeChildren();
this.festivalContainer.addChild(this.festivalTarget); this.festivalContainer.addChild(this.festivalTarget);
......
...@@ -53,7 +53,9 @@ export default class RedBombAlertPanel extends Panel { ...@@ -53,7 +53,9 @@ export default class RedBombAlertPanel extends Panel {
this.addChild(mv); this.addChild(mv);
setTimeout(() => { setTimeout(() => {
this.btn.visible = true; this.btn.visible = true;
this.btnLabel.text = '继续闯关'; this['btn2'].visible = true;
this['btn1'].visible = false;
// this.btnLabel.text = '继续闯关';
NetManager.ins.showLog(getlogItem(76)); NetManager.ins.showLog(getlogItem(76));
this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(76)); NetManager.ins.clickLog(getlogItem(76));
...@@ -77,7 +79,9 @@ export default class RedBombAlertPanel extends Panel { ...@@ -77,7 +79,9 @@ export default class RedBombAlertPanel extends Panel {
this.addChildAt(mv, 1); this.addChildAt(mv, 1);
setTimeout(() => { setTimeout(() => {
this.btn.visible = true; this.btn.visible = true;
this.btnLabel.text = '开心收下'; // this.btnLabel.text = '开心收下';
this['btn1'].visible = true;
this['btn2'].visible = false;
NetManager.ins.showLog(getlogItem(75)); NetManager.ins.showLog(getlogItem(75));
this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(75)); NetManager.ins.clickLog(getlogItem(75));
......
...@@ -43,7 +43,7 @@ export class FestivalTarget extends egret.DisplayObjectContainer { ...@@ -43,7 +43,7 @@ export class FestivalTarget extends egret.DisplayObjectContainer {
this.addChild(this.zeroMark); this.addChild(this.zeroMark);
this.countNum = new TargetNumber(); this.countNum = new TargetNumber();
this.countNum.x = 40; this.countNum.x = 40;
this.countNum.y = 60; this.countNum.y = 55;
this.addChild(this.countNum); this.addChild(this.countNum);
this.count = count; this.count = count;
......
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