Commit b44f3847 authored by huangwenjie's avatar huangwenjie

新增互动蒙层,爱心值动画暂停

parent 74379f9e
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["..\\assets\\common\\lock.png","..\\assets\\common\\commonTitleEle.png","..\\assets\\common\\commonPanelBg2.png","..\\assets\\common\\commonPanelBg.png","..\\assets\\common\\closeBtn.png","..\\assets\\choose\\whiteChoose.png","..\\assets\\choose\\vip3_emblem.png","..\\assets\\choose\\vip2_emblem.png","..\\assets\\choose\\vip1_emblem.png","..\\assets\\choose\\switchBtn.png","..\\assets\\choose\\point3.png","..\\assets\\choose\\point2.png","..\\assets\\choose\\point1.png","..\\assets\\choose\\noChooseBtn.png","..\\assets\\choose\\newPigTip.png","..\\assets\\choose\\chooseTips .png","..\\assets\\choose\\cho_vip3_title.png","..\\assets\\choose\\cho_vip3_bg.png","..\\assets\\choose\\cho_vip2_title.png","..\\assets\\choose\\cho_vip2_bg.png","..\\assets\\choose\\cho_vip1_title.png","..\\assets\\choose\\cho_vip1_bg.png","..\\assets\\choose\\cho_toast.png","..\\assets\\choose\\cho_soc_vip3.png","..\\assets\\choose\\cho_soc_vip2.png","..\\assets\\choose\\cho_soc_vip1.png","..\\assets\\choose\\cho_rechoose_btn.png","..\\assets\\choose\\cho_lockMask.png","..\\assets\\choose\\cho_choose_btn.png","..\\assets\\choose\\cho_bg_title.png","..\\assets\\choose\\cho_bea_vip3.png","..\\assets\\choose\\cho_bea_vip2.png","..\\assets\\choose\\cho_bea_vip1.png","..\\assets\\choose\\cho_ath_vip3.png","..\\assets\\choose\\cho_ath_vip2.png","..\\assets\\choose\\cho_ath_vip1.png","..\\assets\\gift\\useBtn.png","..\\assets\\gift\\rePunchCardBtn.png","..\\assets\\gift\\heartBreak.png","..\\assets\\gift\\giftBox.png","..\\assets\\gift\\giftBg.png","..\\assets\\gift\\giftb.png","..\\assets\\gift\\bigGiftBox.png","..\\assets\\gift\\acceptBtn.png","..\\assets\\mainScene\\bubble2.png","..\\assets\\mainScene\\bubble1.png","..\\assets\\mainScene\\bubble0.png","..\\assets\\mainScene\\bodyBtn0.png","..\\assets\\mainScene\\bodyBtn.png","..\\assets\\mainScene\\awardBtn.png","..\\assets\\mainScene\\heart1.png","..\\assets\\mainScene\\heart0.png","..\\assets\\mainScene\\headBtn0.png","..\\assets\\mainScene\\headBtn.png","..\\assets\\mainScene\\feedMouth.png","..\\assets\\mainScene\\feedBtn.png","..\\assets\\mainScene\\drawGiftTips.png","..\\assets\\mainScene\\propIconBg.png","..\\assets\\mainScene\\propBarHideBtn.png","..\\assets\\mainScene\\propBarBg.png","..\\assets\\mainScene\\newpTips.png","..\\assets\\mainScene\\loveBg.png","..\\assets\\mainScene\\lockMask.png","..\\assets\\mainScene\\lightPoint.png","..\\assets\\mainScene\\saveWear.png","..\\assets\\mainScene\\redPoint.png","..\\assets\\mainScene\\redlinePoint.png","..\\assets\\mainScene\\redline1.png","..\\assets\\mainScene\\redline0.png","..\\assets\\mainScene\\wearTips.png","..\\assets\\mainScene\\WearBtn.png","..\\assets\\mainScene\\wave7.png","..\\assets\\mainScene\\wave6.png","..\\assets\\mainScene\\wave5.png","..\\assets\\mainScene\\wave4.png","..\\assets\\mainScene\\wave3.png","..\\assets\\mainScene\\wave2.png","..\\assets\\mainScene\\wave1.png","..\\assets\\mainScene\\wave0.png","..\\assets\\mainScene\\washBtn.png","..\\assets\\mainScene\\vipBody2.png","..\\assets\\mainScene\\vipBody1.png","..\\assets\\mainScene\\vip2.png","..\\assets\\mainScene\\vip1.png","..\\assets\\mainScene\\vip0.png","..\\assets\\mainScene\\touchBtn.png","..\\assets\\mainScene\\timeRecordBtn.png","..\\assets\\mainScene\\signInBoxOpen2.png","..\\assets\\mainScene\\signInBoxOpen1.png","..\\assets\\mainScene\\signInBoxOpen0.png","..\\assets\\mainScene\\signInBoxClose2.png","..\\assets\\mainScene\\signInBoxClose1.png","..\\assets\\mainScene\\signInBoxClose0.png","..\\assets\\mainScene\\shareBtn.png","..\\assets\\choose\\cho_title.png","..\\assets\\calendar\\cal_back.png","..\\assets\\choose\\choosePanel.png","..\\assets\\choose\\cho_big_choose_btn.png","..\\assets\\choose\\adoptedBtn.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["..\\assets\\common\\lock.png","..\\assets\\common\\commonTitleEle.png","..\\assets\\common\\commonPanelBg2.png","..\\assets\\common\\commonPanelBg.png","..\\assets\\common\\closeBtn.png","..\\assets\\choose\\whiteChoose.png","..\\assets\\choose\\vip3_emblem.png","..\\assets\\choose\\vip2_emblem.png","..\\assets\\choose\\vip1_emblem.png","..\\assets\\choose\\switchBtn.png","..\\assets\\choose\\point3.png","..\\assets\\choose\\point2.png","..\\assets\\choose\\point1.png","..\\assets\\choose\\noChooseBtn.png","..\\assets\\choose\\newPigTip.png","..\\assets\\choose\\chooseTips .png","..\\assets\\choose\\cho_vip3_title.png","..\\assets\\choose\\cho_vip3_bg.png","..\\assets\\choose\\cho_vip2_title.png","..\\assets\\choose\\cho_vip2_bg.png","..\\assets\\choose\\cho_vip1_title.png","..\\assets\\choose\\cho_vip1_bg.png","..\\assets\\choose\\cho_toast.png","..\\assets\\choose\\cho_soc_vip3.png","..\\assets\\choose\\cho_soc_vip2.png","..\\assets\\choose\\cho_soc_vip1.png","..\\assets\\choose\\cho_rechoose_btn.png","..\\assets\\choose\\cho_lockMask.png","..\\assets\\choose\\cho_choose_btn.png","..\\assets\\choose\\cho_bg_title.png","..\\assets\\choose\\cho_bea_vip3.png","..\\assets\\choose\\cho_bea_vip2.png","..\\assets\\choose\\cho_bea_vip1.png","..\\assets\\choose\\cho_ath_vip3.png","..\\assets\\choose\\cho_ath_vip2.png","..\\assets\\choose\\cho_ath_vip1.png","..\\assets\\gift\\useBtn.png","..\\assets\\gift\\rePunchCardBtn.png","..\\assets\\gift\\heartBreak.png","..\\assets\\gift\\giftBox.png","..\\assets\\gift\\giftBg.png","..\\assets\\gift\\giftb.png","..\\assets\\gift\\bigGiftBox.png","..\\assets\\gift\\acceptBtn.png","..\\assets\\mainScene\\bubble2.png","..\\assets\\mainScene\\bubble1.png","..\\assets\\mainScene\\bubble0.png","..\\assets\\mainScene\\bodyBtn0.png","..\\assets\\mainScene\\bodyBtn.png","..\\assets\\mainScene\\awardBtn.png","..\\assets\\mainScene\\heart1.png","..\\assets\\mainScene\\heart0.png","..\\assets\\mainScene\\headBtn0.png","..\\assets\\mainScene\\headBtn.png","..\\assets\\mainScene\\feedMouth.png","..\\assets\\mainScene\\feedBtn.png","..\\assets\\mainScene\\drawGiftTips.png","..\\assets\\mainScene\\propIconBg.png","..\\assets\\mainScene\\propBarHideBtn.png","..\\assets\\mainScene\\propBarBg.png","..\\assets\\mainScene\\newpTips.png","..\\assets\\mainScene\\loveBg.png","..\\assets\\mainScene\\lockMask.png","..\\assets\\mainScene\\lightPoint.png","..\\assets\\mainScene\\saveWear.png","..\\assets\\mainScene\\redPoint.png","..\\assets\\mainScene\\redlinePoint.png","..\\assets\\mainScene\\redline1.png","..\\assets\\mainScene\\redline0.png","..\\assets\\mainScene\\wearTips.png","..\\assets\\mainScene\\WearBtn.png","..\\assets\\mainScene\\wave7.png","..\\assets\\mainScene\\wave6.png","..\\assets\\mainScene\\wave5.png","..\\assets\\mainScene\\wave4.png","..\\assets\\mainScene\\wave3.png","..\\assets\\mainScene\\wave2.png","..\\assets\\mainScene\\wave1.png","..\\assets\\mainScene\\wave0.png","..\\assets\\mainScene\\washBtn.png","..\\assets\\mainScene\\vipBody2.png","..\\assets\\mainScene\\vipBody1.png","..\\assets\\mainScene\\vip2.png","..\\assets\\mainScene\\vip1.png","..\\assets\\mainScene\\vip0.png","..\\assets\\mainScene\\touchBtn.png","..\\assets\\mainScene\\timeRecordBtn.png","..\\assets\\mainScene\\signInBoxOpen2.png","..\\assets\\mainScene\\signInBoxOpen1.png","..\\assets\\mainScene\\signInBoxOpen0.png","..\\assets\\mainScene\\signInBoxClose2.png","..\\assets\\mainScene\\signInBoxClose1.png","..\\assets\\mainScene\\signInBoxClose0.png","..\\assets\\mainScene\\shareBtn.png","..\\assets\\choose\\cho_title.png","..\\assets\\calendar\\cal_back.png","..\\assets\\choose\\choosePanel.png","..\\assets\\choose\\cho_big_choose_btn.png","..\\assets\\choose\\adoptedBtn.png","..\\assets\\mainScene\\wave99.png"]}
\ No newline at end of file \ No newline at end of file
egret/resource/assets/share/ewm.png

6.63 KB | W: | H:

egret/resource/assets/share/ewm.png

42.3 KB | W: | H:

egret/resource/assets/share/ewm.png
egret/resource/assets/share/ewm.png
egret/resource/assets/share/ewm.png
egret/resource/assets/share/ewm.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"name": "Preload" "name": "Preload"
}, },
{ {
"keys": "lock_png,commonTitleEle_png,commonPanelBg2_png,commonPanelBg_png,closeBtn_png,whiteChoose_png,vip3_emblem_png,vip2_emblem_png,vip1_emblem_png,switchBtn_png,point3_png,point2_png,point1_png,noChooseBtn_png,newPigTip_png,chooseTips _png,cho_vip3_title_png,cho_vip3_bg_png,cho_vip2_title_png,cho_vip2_bg_png,cho_vip1_title_png,cho_vip1_bg_png,cho_toast_png,cho_soc_vip3_png,cho_soc_vip2_png,cho_soc_vip1_png,cho_rechoose_btn_png,cho_lockMask_png,cho_choose_btn_png,cho_bg_title_png,cho_bea_vip3_png,cho_bea_vip2_png,cho_bea_vip1_png,cho_ath_vip3_png,cho_ath_vip2_png,cho_ath_vip1_png,useBtn_png,rePunchCardBtn_png,heartBreak_png,giftBox_png,giftBg_png,giftb_png,bigGiftBox_png,acceptBtn_png,bubble2_png,bubble1_png,bubble0_png,bodyBtn0_png,bodyBtn_png,awardBtn_png,heart1_png,heart0_png,headBtn0_png,headBtn_png,feedMouth_png,feedBtn_png,drawGiftTips_png,propIconBg_png,propBarHideBtn_png,propBarBg_png,newpTips_png,loveBg_png,lockMask_png,lightPoint_png,saveWear_png,redPoint_png,redlinePoint_png,redline1_png,redline0_png,wearTips_png,WearBtn_png,wave7_png,wave6_png,wave5_png,wave4_png,wave3_png,wave2_png,wave1_png,wave0_png,washBtn_png,vipBody2_png,vipBody1_png,vip2_png,vip1_png,vip0_png,touchBtn_png,timeRecordBtn_png,signInBoxOpen2_png,signInBoxOpen1_png,signInBoxOpen0_png,signInBoxClose2_png,signInBoxClose1_png,signInBoxClose0_png,shareBtn_png,cho_title_png,cal_back_png,choosePanel_png,cho_big_choose_btn_png,adoptedBtn_png", "keys": "lock_png,commonTitleEle_png,commonPanelBg2_png,commonPanelBg_png,closeBtn_png,whiteChoose_png,vip3_emblem_png,vip2_emblem_png,vip1_emblem_png,switchBtn_png,point3_png,point2_png,point1_png,noChooseBtn_png,newPigTip_png,chooseTips _png,cho_vip3_title_png,cho_vip3_bg_png,cho_vip2_title_png,cho_vip2_bg_png,cho_vip1_title_png,cho_vip1_bg_png,cho_toast_png,cho_soc_vip3_png,cho_soc_vip2_png,cho_soc_vip1_png,cho_rechoose_btn_png,cho_lockMask_png,cho_choose_btn_png,cho_bg_title_png,cho_bea_vip3_png,cho_bea_vip2_png,cho_bea_vip1_png,cho_ath_vip3_png,cho_ath_vip2_png,cho_ath_vip1_png,useBtn_png,rePunchCardBtn_png,heartBreak_png,giftBox_png,giftBg_png,giftb_png,bigGiftBox_png,acceptBtn_png,bubble2_png,bubble1_png,bubble0_png,bodyBtn0_png,bodyBtn_png,awardBtn_png,heart1_png,heart0_png,headBtn0_png,headBtn_png,feedMouth_png,feedBtn_png,drawGiftTips_png,propIconBg_png,propBarHideBtn_png,propBarBg_png,newpTips_png,loveBg_png,lockMask_png,lightPoint_png,saveWear_png,redPoint_png,redlinePoint_png,redline1_png,redline0_png,wearTips_png,WearBtn_png,wave7_png,wave6_png,wave5_png,wave4_png,wave3_png,wave2_png,wave1_png,wave0_png,washBtn_png,vipBody2_png,vipBody1_png,vip2_png,vip1_png,vip0_png,touchBtn_png,timeRecordBtn_png,signInBoxOpen2_png,signInBoxOpen1_png,signInBoxOpen0_png,signInBoxClose2_png,signInBoxClose1_png,signInBoxClose0_png,shareBtn_png,cho_title_png,cal_back_png,choosePanel_png,cho_big_choose_btn_png,adoptedBtn_png,wave99_png",
"name": "Normal" "name": "Normal"
}, },
{ {
...@@ -1640,6 +1640,21 @@ ...@@ -1640,6 +1640,21 @@
"url": "assets/mainScene/sh/shBodyVip2.png", "url": "assets/mainScene/sh/shBodyVip2.png",
"type": "image", "type": "image",
"name": "shBodyVip2_png" "name": "shBodyVip2_png"
},
{
"url": "assets/mainScene/wave99.png",
"type": "image",
"name": "wave99_png"
},
{
"url": "assets/rule/rule1.png",
"type": "image",
"name": "rule1_png"
},
{
"url": "assets/mainScene/wave99.png",
"type": "image",
"name": "wave992_png"
} }
] ]
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<e:Button id="reChooseBtn" label="" x="231.5" y="934" skinName="ui.IconButtonSkin" icon="cho_rechoose_btn_png" width="235" height="86" anchorOffsetY="43" anchorOffsetX="117.5"/> <e:Button id="reChooseBtn" label="" x="231.5" y="934" skinName="ui.IconButtonSkin" icon="cho_rechoose_btn_png" width="235" height="86" anchorOffsetY="43" anchorOffsetX="117.5"/>
<e:Button id="chooseBtn" label="" x="518.5" y="934" skinName="ui.IconButtonSkin" icon="cho_big_choose_btn_png" anchorOffsetX="117.5" anchorOffsetY="43" height="86" width="235"/> <e:Button id="chooseBtn" label="" x="518.5" y="934" skinName="ui.IconButtonSkin" icon="cho_big_choose_btn_png" anchorOffsetX="117.5" anchorOffsetY="43" height="86" width="235"/>
<e:Image id="warnTips" source="chooseTips _png" x="123" y="999"/> <e:Image id="warnTips" source="chooseTips _png" x="123" y="999"/>
<e:Label id="giftTips" text="累计打开14天,养成这只运动猪,\n即有机会赢取变美小礼包哦~" y="802" textAlign="center" horizontalCenter="0" lineSpacing="5"/> <e:Label id="giftTips" text="累计打4天,养成这只运动猪,\n即有机会赢取变美小礼包哦~" y="802" textAlign="center" horizontalCenter="0" lineSpacing="5"/>
<e:Label id="vipTxt" text="您当前的等级为:" y="200" textColor="0x3063b2" fontFamily="Microsoft YaHei" x="232.7" size="28" textAlign="center" verticalAlign="middle"/> <e:Label id="vipTxt" text="您当前的等级为:" y="200" textColor="0x3063b2" fontFamily="Microsoft YaHei" x="232.7" size="28" textAlign="center" verticalAlign="middle"/>
<e:Image id="vip" source="vip1_emblem_png" x="457.53" y="180.5"/> <e:Image id="vip" source="vip1_emblem_png" x="457.53" y="180.5"/>
<e:Rect id="pigMask" width="627" height="526" x="62" y="256" anchorOffsetX="0" anchorOffsetY="0"/> <e:Rect id="pigMask" width="627" height="526" x="62" y="256" anchorOffsetX="0" anchorOffsetY="0"/>
......
...@@ -20,10 +20,12 @@ ...@@ -20,10 +20,12 @@
<e:Scroller id="propBarBody" width="730" height="176" horizontalCenter="0" bottom="12"> <e:Scroller id="propBarBody" width="730" height="176" horizontalCenter="0" bottom="12">
<e:Group id="propBarGroupBody"/> <e:Group id="propBarGroupBody"/>
</e:Scroller> </e:Scroller>
<e:Image id="drawGiftTips" width="192" height="84" x="559.6" source="drawGiftTips_png" anchorOffsetX="0" anchorOffsetY="0" bottom="447"/>
<e:Rect id="interactionBg" width="750" height="1624" x="0" y="0" fillAlpha="0.7"/>
<e:Button id="washBtn" label="Button" x="247.44" skinName="ui.IconButtonSkin" icon="washBtn_png" width="90" anchorOffsetX="45" anchorOffsetY="48.5" bottom="812" height="97"/> <e:Button id="washBtn" label="Button" x="247.44" skinName="ui.IconButtonSkin" icon="washBtn_png" width="90" anchorOffsetX="45" anchorOffsetY="48.5" bottom="812" height="97"/>
<e:Button id="touchBtn" label="Button" x="373.67" skinName="ui.IconButtonSkin" icon="touchBtn_png" width="90" height="97" anchorOffsetX="45" anchorOffsetY="48.5" bottom="812"/> <e:Button id="touchBtn" label="Button" x="373.67" skinName="ui.IconButtonSkin" icon="touchBtn_png" width="90" height="97" anchorOffsetX="45" anchorOffsetY="48.5" bottom="812"/>
<e:Button id="feedBtn" label="Button" x="498.96" skinName="ui.IconButtonSkin" icon="feedBtn_png" width="90" height="97" anchorOffsetX="45" anchorOffsetY="48.5" bottom="812"/> <e:Button id="feedBtn" label="Button" x="498.96" skinName="ui.IconButtonSkin" icon="feedBtn_png" width="90" height="97" anchorOffsetX="45" anchorOffsetY="48.5" bottom="812"/>
<e:Image id="drawGiftTips" width="192" height="84" x="559.6" source="drawGiftTips_png" anchorOffsetX="0" anchorOffsetY="0" bottom="447"/>
......
...@@ -88,7 +88,7 @@ export default class PigVipLevelScene extends Scene { ...@@ -88,7 +88,7 @@ export default class PigVipLevelScene extends Scene {
var str = GameConst.getCookie('dcustom') + ""; var str = GameConst.getCookie('dcustom') + "";
var strs = str.split("&") var strs = str.split("&")
var aaa="null"; var aaa = "null";
for (var i = 0; i < strs.length; i++) { for (var i = 0; i < strs.length; i++) {
if (strs[i].indexOf("vip") >= 0) { if (strs[i].indexOf("vip") >= 0) {
aaa = strs[i] aaa = strs[i]
...@@ -140,17 +140,17 @@ export default class PigVipLevelScene extends Scene { ...@@ -140,17 +140,17 @@ export default class PigVipLevelScene extends Scene {
// 更新种类 // 更新种类
if (this.pigTheme == 'wastonA') { if (this.pigTheme == 'wastonA') {
this.giftTips.text = `累计打14天,养成这只运动猪,\n即有机会赢取变美小礼包哦~`; this.giftTips.text = `累计打14天,养成这只运动猪,\n即有机会赢取变美小礼包哦~`;
for (let i = 1; i <= 3; i++) { for (let i = 1; i <= 3; i++) {
this.pigList[`vip${i}`][`vip${i}Pig`].source = `cho_ath_vip${i}_png`; this.pigList[`vip${i}`][`vip${i}Pig`].source = `cho_ath_vip${i}_png`;
} }
} else if (this.pigTheme == 'wastonB') { } else if (this.pigTheme == 'wastonB') {
this.giftTips.text = `累计打14天,养成这只臭美猪,\n即有机会赢取变美小礼包哦~`; this.giftTips.text = `累计打14天,养成这只臭美猪,\n即有机会赢取变美小礼包哦~`;
for (let i = 1; i <= 3; i++) { for (let i = 1; i <= 3; i++) {
this.pigList[`vip${i}`][`vip${i}Pig`].source = `cho_bea_vip${i}_png`; this.pigList[`vip${i}`][`vip${i}Pig`].source = `cho_bea_vip${i}_png`;
} }
} else if (this.pigTheme == 'wastonC') { } else if (this.pigTheme == 'wastonC') {
this.giftTips.text = `累计打14天,养成这只社会猪,\n即有机会赢取变美小礼包哦~`; this.giftTips.text = `累计打14天,养成这只社会猪,\n即有机会赢取变美小礼包哦~`;
for (let i = 1; i <= 3; i++) { for (let i = 1; i <= 3; i++) {
this.pigList[`vip${i}`][`vip${i}Pig`].source = `cho_soc_vip${i}_png`; this.pigList[`vip${i}`][`vip${i}Pig`].source = `cho_soc_vip${i}_png`;
} }
......
...@@ -28,6 +28,7 @@ export default class PlayScene extends Scene { ...@@ -28,6 +28,7 @@ export default class PlayScene extends Scene {
private signBar: egret.Sprite; private signBar: egret.Sprite;
//三个交互 //三个交互
private interactionBg: eui.Rect;
private washBtn: eui.Button; private washBtn: eui.Button;
private touchBtn: eui.Button; private touchBtn: eui.Button;
private feedBtn: eui.Button; private feedBtn: eui.Button;
...@@ -530,7 +531,7 @@ export default class PlayScene extends Scene { ...@@ -530,7 +531,7 @@ export default class PlayScene extends Scene {
//vip等级图片 取cookie //vip等级图片 取cookie
var str = GameConst.getCookie('dcustom') + ""; var str = GameConst.getCookie('dcustom') + "";
var strs = str.split("&") var strs = str.split("&")
var aaa="null"; var aaa = "null";
for (var i = 0; i < strs.length; i++) { for (var i = 0; i < strs.length; i++) {
if (strs[i].indexOf("vip") >= 0) { if (strs[i].indexOf("vip") >= 0) {
aaa = strs[i] aaa = strs[i]
...@@ -558,28 +559,12 @@ export default class PlayScene extends Scene { ...@@ -558,28 +559,12 @@ export default class PlayScene extends Scene {
// this.vip.source = "vip" + this.vipLevel + "_png"; // this.vip.source = "vip" + this.vipLevel + "_png";
//三个交互按钮隐藏 //三个交互按钮隐藏
this.interactionBg.visible = false;
this.washBtn.visible = false; this.washBtn.visible = false;
this.touchBtn.visible = false; this.touchBtn.visible = false;
this.feedBtn.visible = false; this.feedBtn.visible = false;
//根据猪的类型显示
this.setPigStatus();
//绑定事件
this.pig.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_pig, this);
this.shareBottomBg = new eui.Image();
this.shareBottomBg.source = `shareTips_png`;
this.shareBottomBg.x = -375;
this.shareBottomBg.y = 80;
this.shareBottomBg.visible = false;
this.pig.addChildAt(this.shareBottomBg, 1);
this.ewm = new eui.Image();
this.ewm.source = window['ewmSource'] ? window['ewmSource'] : `ewm_png`;
this.ewm.x = 140;
this.ewm.y = 110;
this.pig.addChild(this.ewm);
this.ewm.visible = false;
//爱心条 //爱心条
this.setLove(); this.setLove();
...@@ -591,7 +576,7 @@ export default class PlayScene extends Scene { ...@@ -591,7 +576,7 @@ export default class PlayScene extends Scene {
this.newObjIcon.source = "newpTips_png"; this.newObjIcon.source = "newpTips_png";
this.newObjIcon.x = 660; this.newObjIcon.x = 660;
this.newObjIcon.bottom = 408 this.newObjIcon.bottom = 408
this.addChild(this.newObjIcon) this.addChildAt(this.newObjIcon, 5)
this.newObjIcon.visible = false; this.newObjIcon.visible = false;
//更新进度条,礼盒, //更新进度条,礼盒,
...@@ -605,7 +590,7 @@ export default class PlayScene extends Scene { ...@@ -605,7 +590,7 @@ export default class PlayScene extends Scene {
headBtn.source = "headBtn_png"; headBtn.source = "headBtn_png";
headBtn["sourceOpen"] = "headBtn_png"; headBtn["sourceOpen"] = "headBtn_png";
headBtn["sourceClose"] = "headBtn0_png"; headBtn["sourceClose"] = "headBtn0_png";
this.addChild(headBtn); this.addChildAt(headBtn, 9);
var bodyBtn = new eui.Image(); var bodyBtn = new eui.Image();
bodyBtn.x = 187; bodyBtn.x = 187;
bodyBtn.bottom = 172 - 300; bodyBtn.bottom = 172 - 300;
...@@ -613,7 +598,7 @@ export default class PlayScene extends Scene { ...@@ -613,7 +598,7 @@ export default class PlayScene extends Scene {
bodyBtn.source = "bodyBtn0_png"; bodyBtn.source = "bodyBtn0_png";
bodyBtn["sourceOpen"] = "bodyBtn_png"; bodyBtn["sourceOpen"] = "bodyBtn_png";
bodyBtn["sourceClose"] = "bodyBtn0_png"; bodyBtn["sourceClose"] = "bodyBtn0_png";
this.addChild(bodyBtn); this.addChildAt(bodyBtn, 9);
console.log(bodyBtn) console.log(bodyBtn)
//默认初始先隐藏身体栏,显示头部栏 //默认初始先隐藏身体栏,显示头部栏
this.propBarBody.visible = false; this.propBarBody.visible = false;
...@@ -708,7 +693,7 @@ export default class PlayScene extends Scene { ...@@ -708,7 +693,7 @@ export default class PlayScene extends Scene {
bodyBtn.source = bodyBtn["sourceClose"]; bodyBtn.source = bodyBtn["sourceClose"];
this.propBarBody.visible = false; this.propBarBody.visible = false;
this.propBarHead.visible = true; this.propBarHead.visible = true;
// this.addChildAt(this.propBarHead, 0)
//发头部装扮曝光埋点 //发头部装扮曝光埋点
for (var m = 0; m < this.headPropsExposureIndex.length; m++) { for (var m = 0; m < this.headPropsExposureIndex.length; m++) {
var index = this.headPropsExposureIndex[m]; var index = this.headPropsExposureIndex[m];
...@@ -722,7 +707,7 @@ export default class PlayScene extends Scene { ...@@ -722,7 +707,7 @@ export default class PlayScene extends Scene {
headBtn.source = headBtn["sourceClose"]; headBtn.source = headBtn["sourceClose"];
this.propBarBody.visible = true; this.propBarBody.visible = true;
this.propBarHead.visible = false; this.propBarHead.visible = false;
// this.addChildAt(this.propBarBody, 0)
//发身体装扮曝光埋点 //发身体装扮曝光埋点
for (var m = 0; m < this.bodyPropsExposureIndex.length; m++) { for (var m = 0; m < this.bodyPropsExposureIndex.length; m++) {
var index = this.bodyPropsExposureIndex[m]; var index = this.bodyPropsExposureIndex[m];
...@@ -734,6 +719,29 @@ export default class PlayScene extends Scene { ...@@ -734,6 +719,29 @@ export default class PlayScene extends Scene {
this.bodyBtn = bodyBtn this.bodyBtn = bodyBtn
this.headBtn = headBtn this.headBtn = headBtn
this.addChild(this.washBtn);
this.addChild(this.touchBtn);
this.addChild(this.feedBtn)
//根据猪的类型显示
this.setPigStatus();
//绑定事件
this.pig.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_pig, this);
this.shareBottomBg = new eui.Image();
this.shareBottomBg.source = `shareTips_png`;
this.shareBottomBg.x = -375;
this.shareBottomBg.y = 80;
this.shareBottomBg.visible = false;
this.pig.addChildAt(this.shareBottomBg, 1);
this.ewm = new eui.Image();
this.ewm.source = window['ewmSource'] ? window['ewmSource'] : `ewm_png`;
this.ewm.width = 120;
this.ewm.height = 120;
this.ewm.x = 140;
this.ewm.y = 110;
this.pig.addChild(this.ewm);
this.ewm.visible = false;
} }
...@@ -826,7 +834,7 @@ export default class PlayScene extends Scene { ...@@ -826,7 +834,7 @@ export default class PlayScene extends Scene {
this.signBar.graphics.endFill(); this.signBar.graphics.endFill();
this.signBar.x = (750 - 657) / 2 this.signBar.x = (750 - 657) / 2
this.signBar.y = 28 this.signBar.y = 28
this.addChild(this.signBar); this.addChildAt(this.signBar, 8);
//打卡文案背景 //打卡文案背景
var signMsgBg = new egret.Sprite(); var signMsgBg = new egret.Sprite();
signMsgBg.graphics.beginFill(0xffd9d9, 1); signMsgBg.graphics.beginFill(0xffd9d9, 1);
...@@ -938,7 +946,7 @@ export default class PlayScene extends Scene { ...@@ -938,7 +946,7 @@ export default class PlayScene extends Scene {
blood.x = -35; blood.x = -35;
blood.y = 0; //25 dao -35 blood.y = 0; //25 dao -35
// console.log(blood) // console.log(blood)
blood.source = "wave0_png"; blood.source = "wave99_png";
blood["sourceAll"] = ["wave0_png", "wave1_png", "wave2_png", "wave3_png", "wave4_png", "wave5_png", "wave6_png", "wave7_png"]; blood["sourceAll"] = ["wave0_png", "wave1_png", "wave2_png", "wave3_png", "wave4_png", "wave5_png", "wave6_png", "wave7_png"];
blood["currentFrame"] = 0; blood["currentFrame"] = 0;
blood["allFrame"] = 7; blood["allFrame"] = 7;
...@@ -1008,7 +1016,7 @@ export default class PlayScene extends Scene { ...@@ -1008,7 +1016,7 @@ export default class PlayScene extends Scene {
this.drawGiftTips.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_drawGiftTipsBtn, this); this.drawGiftTips.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_drawGiftTipsBtn, this);
// this.pig.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_pig, this); // this.pig.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_pig, this);
// this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ele, this); // this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ele, this);
this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this); // this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
//三个交互按钮 //三个交互按钮
this.washBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_washBtn, this); this.washBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_washBtn, this);
...@@ -1092,6 +1100,8 @@ export default class PlayScene extends Scene { ...@@ -1092,6 +1100,8 @@ export default class PlayScene extends Scene {
this.shareBottomBg.visible = true; this.shareBottomBg.visible = true;
this.ewm.source = window['ewmSource'] ? window['ewmSource'] : `ewm_png`; this.ewm.source = window['ewmSource'] ? window['ewmSource'] : `ewm_png`;
this.ewm.width = 120;
this.ewm.height = 120;
this.ewm.x = 140; this.ewm.x = 140;
this.ewm.y = 110; this.ewm.y = 110;
this.pig.addChild(this.ewm); this.pig.addChild(this.ewm);
...@@ -1117,7 +1127,7 @@ export default class PlayScene extends Scene { ...@@ -1117,7 +1127,7 @@ export default class PlayScene extends Scene {
this.pig.addChildAt(shareTxt, 2); this.pig.addChildAt(shareTxt, 2);
let saveTips = new eui.Label(); let saveTips = new eui.Label();
saveTips.text = `长按保存图片`; saveTips.text = `长按保存图片分享`;
saveTips.x = -260; saveTips.x = -260;
saveTips.y = 150; saveTips.y = 150;
saveTips.size = 24; saveTips.size = 24;
...@@ -1549,11 +1559,13 @@ export default class PlayScene extends Scene { ...@@ -1549,11 +1559,13 @@ export default class PlayScene extends Scene {
}) })
} }
// 更新爱心值
updateLoveValue() { updateLoveValue() {
let scope = this; let scope = this;
let targetValue = Number(DataManager.ins.getData('addValue').data); let targetValue = Number(DataManager.ins.getData('addValue').data);
this.loveValue = targetValue; this.loveValue = targetValue;
// targetValue // targetValue
this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
let value = { value: (this.loveContainer["blood"].y - 25) / -(60 / 100) }; let value = { value: (this.loveContainer["blood"].y - 25) / -(60 / 100) };
let tw = egret.Tween.get(value, { let tw = egret.Tween.get(value, {
onChange: () => { onChange: () => {
...@@ -1561,6 +1573,8 @@ export default class PlayScene extends Scene { ...@@ -1561,6 +1573,8 @@ export default class PlayScene extends Scene {
this.loveContainer["cusTxt"].text = Math.floor(value.value) + "%"; this.loveContainer["cusTxt"].text = Math.floor(value.value) + "%";
} }
}).to({ value: targetValue }, 1000).call(() => { }).to({ value: targetValue }, 1000).call(() => {
this.loveContainer["blood"].source = `wave99_png`;
this.removeEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
if (targetValue >= 100 && !window['currentPigData'].alredyReward) { if (targetValue >= 100 && !window['currentPigData'].alredyReward) {
scope.drawGiftTips.visible = true; scope.drawGiftTips.visible = true;
let tw2 = egret.Tween.get(scope.drawGiftTips).to({ x: 560 }, 500); let tw2 = egret.Tween.get(scope.drawGiftTips).to({ x: 560 }, 500);
...@@ -1728,6 +1742,9 @@ export default class PlayScene extends Scene { ...@@ -1728,6 +1742,9 @@ export default class PlayScene extends Scene {
.call(() => { .call(() => {
this.feedBtn.touchEnabled = true; this.feedBtn.touchEnabled = true;
}, this) }, this)
this.interactionBg.visible = true;
} }
//隐藏3个交互按钮 点击任意按钮后就隐藏 执行完交互动效后就返回初始状态 //隐藏3个交互按钮 点击任意按钮后就隐藏 执行完交互动效后就返回初始状态
private threeActionBtnHide() { private threeActionBtnHide() {
...@@ -1750,6 +1767,8 @@ export default class PlayScene extends Scene { ...@@ -1750,6 +1767,8 @@ export default class PlayScene extends Scene {
.call(() => { .call(() => {
this.feedBtn.visible = false; this.feedBtn.visible = false;
}, this) }, this)
this.interactionBg.visible = false;
} }
private count = 0; private count = 0;
......
...@@ -43,6 +43,6 @@ ...@@ -43,6 +43,6 @@
"customInfo": { "customInfo": {
"isLuckyStar": true "isLuckyStar": true
}, },
"success": true, "success": false,
"logId": 81338132946820 "logId": 81338132946820
} }
\ 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