Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pannage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
pannage
Commits
b44f3847
Commit
b44f3847
authored
Mar 14, 2019
by
huangwenjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增互动蒙层,爱心值动画暂停
parent
74379f9e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
72 additions
and
36 deletions
+72
-36
Normal_1.tmproject
egret/resource/TextureMerger/Normal_1.tmproject
+1
-1
wave99.png
egret/resource/assets/mainScene/wave99.png
+0
-0
ewm.png
egret/resource/assets/share/ewm.png
+0
-0
default.res.json
egret/resource/default.res.json
+16
-1
PigVipLevelSkin.exml
egret/resource/skins/PigVipLevelSkin.exml
+1
-1
PlaySkin.exml
egret/resource/skins/PlaySkin.exml
+3
-1
PigVipLevelScene.ts
egret/src/chooseScene/PigVipLevelScene.ts
+4
-4
PlayScene.ts
egret/src/playScene/PlayScene.ts
+46
-27
doSign.json
mock/json/doSign.json
+1
-1
No files found.
egret/resource/TextureMerger/Normal_1.tmproject
View file @
b44f3847
{"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"]}
\ No newline at end of file
{"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
egret/resource/assets/mainScene/wave99.png
0 → 100644
View file @
b44f3847
1.57 KB
egret/resource/assets/share/ewm.png
View replaced file @
74379f9e
View file @
b44f3847
6.63 KB
|
W:
|
H:
42.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/default.res.json
View file @
b44f3847
...
...
@@ -5,7 +5,7 @@
"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"
},
{
...
...
@@ -1640,6 +1640,21 @@
"url"
:
"assets/mainScene/sh/shBodyVip2.png"
,
"type"
:
"image"
,
"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
egret/resource/skins/PigVipLevelSkin.exml
View file @
b44f3847
...
...
@@ -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=
"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:Label
id=
"giftTips"
text=
"累计打
开1
4天,养成这只运动猪,\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: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"
/>
...
...
egret/resource/skins/PlaySkin.exml
View file @
b44f3847
...
...
@@ -20,10 +20,12 @@
<e:Scroller
id=
"propBarBody"
width=
"730"
height=
"176"
horizontalCenter=
"0"
bottom=
"12"
>
<e:Group
id=
"propBarGroupBody"
/>
</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=
"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:Image
id=
"drawGiftTips"
width=
"192"
height=
"84"
x=
"559.6"
source=
"drawGiftTips_png"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
bottom=
"447"
/>
...
...
egret/src/chooseScene/PigVipLevelScene.ts
View file @
b44f3847
...
...
@@ -88,7 +88,7 @@ export default class PigVipLevelScene extends Scene {
var
str
=
GameConst
.
getCookie
(
'dcustom'
)
+
""
;
var
strs
=
str
.
split
(
"&"
)
var
aaa
=
"null"
;
var
aaa
=
"null"
;
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
if
(
strs
[
i
].
indexOf
(
"vip"
)
>=
0
)
{
aaa
=
strs
[
i
]
...
...
@@ -140,17 +140,17 @@ export default class PigVipLevelScene extends Scene {
// 更新种类
if
(
this
.
pigTheme
==
'wastonA'
)
{
this
.
giftTips
.
text
=
`累计打
开
14天,养成这只运动猪,\n即有机会赢取变美小礼包哦~`
;
this
.
giftTips
.
text
=
`累计打
卡
14天,养成这只运动猪,\n即有机会赢取变美小礼包哦~`
;
for
(
let
i
=
1
;
i
<=
3
;
i
++
)
{
this
.
pigList
[
`vip
${
i
}
`
][
`vip
${
i
}
Pig`
].
source
=
`cho_ath_vip
${
i
}
_png`
;
}
}
else
if
(
this
.
pigTheme
==
'wastonB'
)
{
this
.
giftTips
.
text
=
`累计打
开
14天,养成这只臭美猪,\n即有机会赢取变美小礼包哦~`
;
this
.
giftTips
.
text
=
`累计打
卡
14天,养成这只臭美猪,\n即有机会赢取变美小礼包哦~`
;
for
(
let
i
=
1
;
i
<=
3
;
i
++
)
{
this
.
pigList
[
`vip
${
i
}
`
][
`vip
${
i
}
Pig`
].
source
=
`cho_bea_vip
${
i
}
_png`
;
}
}
else
if
(
this
.
pigTheme
==
'wastonC'
)
{
this
.
giftTips
.
text
=
`累计打
开
14天,养成这只社会猪,\n即有机会赢取变美小礼包哦~`
;
this
.
giftTips
.
text
=
`累计打
卡
14天,养成这只社会猪,\n即有机会赢取变美小礼包哦~`
;
for
(
let
i
=
1
;
i
<=
3
;
i
++
)
{
this
.
pigList
[
`vip
${
i
}
`
][
`vip
${
i
}
Pig`
].
source
=
`cho_soc_vip
${
i
}
_png`
;
}
...
...
egret/src/playScene/PlayScene.ts
View file @
b44f3847
...
...
@@ -28,6 +28,7 @@ export default class PlayScene extends Scene {
private
signBar
:
egret
.
Sprite
;
//三个交互
private
interactionBg
:
eui
.
Rect
;
private
washBtn
:
eui
.
Button
;
private
touchBtn
:
eui
.
Button
;
private
feedBtn
:
eui
.
Button
;
...
...
@@ -530,7 +531,7 @@ export default class PlayScene extends Scene {
//vip等级图片 取cookie
var
str
=
GameConst
.
getCookie
(
'dcustom'
)
+
""
;
var
strs
=
str
.
split
(
"&"
)
var
aaa
=
"null"
;
var
aaa
=
"null"
;
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
if
(
strs
[
i
].
indexOf
(
"vip"
)
>=
0
)
{
aaa
=
strs
[
i
]
...
...
@@ -558,28 +559,12 @@ export default class PlayScene extends Scene {
// this.vip.source = "vip" + this.vipLevel + "_png";
//三个交互按钮隐藏
this
.
interactionBg
.
visible
=
false
;
this
.
washBtn
.
visible
=
false
;
this
.
touchBtn
.
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
();
...
...
@@ -591,7 +576,7 @@ export default class PlayScene extends Scene {
this
.
newObjIcon
.
source
=
"newpTips_png"
;
this
.
newObjIcon
.
x
=
660
;
this
.
newObjIcon
.
bottom
=
408
this
.
addChild
(
this
.
newObjIcon
)
this
.
addChild
At
(
this
.
newObjIcon
,
5
)
this
.
newObjIcon
.
visible
=
false
;
//更新进度条,礼盒,
...
...
@@ -605,7 +590,7 @@ export default class PlayScene extends Scene {
headBtn
.
source
=
"headBtn_png"
;
headBtn
[
"sourceOpen"
]
=
"headBtn_png"
;
headBtn
[
"sourceClose"
]
=
"headBtn0_png"
;
this
.
addChild
(
headBtn
);
this
.
addChild
At
(
headBtn
,
9
);
var
bodyBtn
=
new
eui
.
Image
();
bodyBtn
.
x
=
187
;
bodyBtn
.
bottom
=
172
-
300
;
...
...
@@ -613,7 +598,7 @@ export default class PlayScene extends Scene {
bodyBtn
.
source
=
"bodyBtn0_png"
;
bodyBtn
[
"sourceOpen"
]
=
"bodyBtn_png"
;
bodyBtn
[
"sourceClose"
]
=
"bodyBtn0_png"
;
this
.
addChild
(
bodyBtn
);
this
.
addChild
At
(
bodyBtn
,
9
);
console
.
log
(
bodyBtn
)
//默认初始先隐藏身体栏,显示头部栏
this
.
propBarBody
.
visible
=
false
;
...
...
@@ -708,7 +693,7 @@ export default class PlayScene extends Scene {
bodyBtn
.
source
=
bodyBtn
[
"sourceClose"
];
this
.
propBarBody
.
visible
=
false
;
this
.
propBarHead
.
visible
=
true
;
// this.addChildAt(this.propBarHead, 0)
//发头部装扮曝光埋点
for
(
var
m
=
0
;
m
<
this
.
headPropsExposureIndex
.
length
;
m
++
)
{
var
index
=
this
.
headPropsExposureIndex
[
m
];
...
...
@@ -722,7 +707,7 @@ export default class PlayScene extends Scene {
headBtn
.
source
=
headBtn
[
"sourceClose"
];
this
.
propBarBody
.
visible
=
true
;
this
.
propBarHead
.
visible
=
false
;
// this.addChildAt(this.propBarBody, 0)
//发身体装扮曝光埋点
for
(
var
m
=
0
;
m
<
this
.
bodyPropsExposureIndex
.
length
;
m
++
)
{
var
index
=
this
.
bodyPropsExposureIndex
[
m
];
...
...
@@ -734,6 +719,29 @@ export default class PlayScene extends Scene {
this
.
bodyBtn
=
bodyBtn
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 {
this
.
signBar
.
graphics
.
endFill
();
this
.
signBar
.
x
=
(
750
-
657
)
/
2
this
.
signBar
.
y
=
28
this
.
addChild
(
this
.
signBar
);
this
.
addChild
At
(
this
.
signBar
,
8
);
//打卡文案背景
var
signMsgBg
=
new
egret
.
Sprite
();
signMsgBg
.
graphics
.
beginFill
(
0xffd9d9
,
1
);
...
...
@@ -938,7 +946,7 @@ export default class PlayScene extends Scene {
blood
.
x
=
-
35
;
blood
.
y
=
0
;
//25 dao -35
// console.log(blood)
blood
.
source
=
"wave
0
_png"
;
blood
.
source
=
"wave
99
_png"
;
blood
[
"sourceAll"
]
=
[
"wave0_png"
,
"wave1_png"
,
"wave2_png"
,
"wave3_png"
,
"wave4_png"
,
"wave5_png"
,
"wave6_png"
,
"wave7_png"
];
blood
[
"currentFrame"
]
=
0
;
blood
[
"allFrame"
]
=
7
;
...
...
@@ -1008,7 +1016,7 @@ export default class PlayScene extends Scene {
this
.
drawGiftTips
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_drawGiftTipsBtn
,
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
.
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
);
...
...
@@ -1092,6 +1100,8 @@ export default class PlayScene extends Scene {
this
.
shareBottomBg
.
visible
=
true
;
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
);
...
...
@@ -1117,7 +1127,7 @@ export default class PlayScene extends Scene {
this
.
pig
.
addChildAt
(
shareTxt
,
2
);
let
saveTips
=
new
eui
.
Label
();
saveTips
.
text
=
`长按保存图片`
;
saveTips
.
text
=
`长按保存图片
分享
`
;
saveTips
.
x
=
-
260
;
saveTips
.
y
=
150
;
saveTips
.
size
=
24
;
...
...
@@ -1549,11 +1559,13 @@ export default class PlayScene extends Scene {
})
}
// 更新爱心值
updateLoveValue
()
{
let
scope
=
this
;
let
targetValue
=
Number
(
DataManager
.
ins
.
getData
(
'addValue'
).
data
);
this
.
loveValue
=
targetValue
;
// targetValue
this
.
addEventListener
(
egret
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
let
value
=
{
value
:
(
this
.
loveContainer
[
"blood"
].
y
-
25
)
/
-
(
60
/
100
)
};
let
tw
=
egret
.
Tween
.
get
(
value
,
{
onChange
:
()
=>
{
...
...
@@ -1561,6 +1573,8 @@ export default class PlayScene extends Scene {
this
.
loveContainer
[
"cusTxt"
].
text
=
Math
.
floor
(
value
.
value
)
+
"%"
;
}
}).
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
)
{
scope
.
drawGiftTips
.
visible
=
true
;
let
tw2
=
egret
.
Tween
.
get
(
scope
.
drawGiftTips
).
to
({
x
:
560
},
500
);
...
...
@@ -1728,6 +1742,9 @@ export default class PlayScene extends Scene {
.
call
(()
=>
{
this
.
feedBtn
.
touchEnabled
=
true
;
},
this
)
this
.
interactionBg
.
visible
=
true
;
}
//隐藏3个交互按钮 点击任意按钮后就隐藏 执行完交互动效后就返回初始状态
private
threeActionBtnHide
()
{
...
...
@@ -1750,6 +1767,8 @@ export default class PlayScene extends Scene {
.
call
(()
=>
{
this
.
feedBtn
.
visible
=
false
;
},
this
)
this
.
interactionBg
.
visible
=
false
;
}
private
count
=
0
;
...
...
mock/json/doSign.json
View file @
b44f3847
...
...
@@ -43,6 +43,6 @@
"customInfo"
:
{
"isLuckyStar"
:
true
},
"success"
:
tru
e
,
"success"
:
fals
e
,
"logId"
:
81338132946820
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment