Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
王剑峰
babycare_xiaoxiao
Commits
7f385f06
Commit
7f385f06
authored
Jul 28, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Success Panel Effect!
parent
4b250249
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
165 additions
and
8431 deletions
+165
-8431
workspace.xml
.idea/workspace.xml
+38
-28
res.json
resource/res.json
+52
-52
ResJson.ts
src/ResJson.ts
+61
-8338
SuccessPrizePanel.ts
src/panels/SuccessPrizePanel.ts
+13
-12
CheckBtn.ts
src/scene/map/CheckBtn.ts
+1
-1
No files found.
.idea/workspace.xml
View file @
7f385f06
This diff is collapsed.
Click to expand it.
resource/res.json
View file @
7f385f06
This diff is collapsed.
Click to expand it.
src/ResJson.ts
View file @
7f385f06
This diff is collapsed.
Click to expand it.
src/panels/SuccessPrizePanel.ts
View file @
7f385f06
...
@@ -28,8 +28,8 @@ export class SuccessPrizePanel extends Panel {
...
@@ -28,8 +28,8 @@ export class SuccessPrizePanel extends Panel {
this
.
isShowing
=
true
;
this
.
isShowing
=
true
;
this
.
anchor
.
set
(
375
,
812
);
this
.
anchor
.
set
(
375
,
812
);
Tween
.
get
(
this
)
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
400
,
Ease
.
backOut
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
400
,
Ease
.
backOut
)
.
call
(()
=>
{
.
call
(()
=>
{
this
.
isShowing
=
false
;
this
.
isShowing
=
false
;
});
});
...
@@ -92,22 +92,23 @@ export class SuccessPrizePanel extends Panel {
...
@@ -92,22 +92,23 @@ export class SuccessPrizePanel extends Panel {
propLabel
.
text
=
'步数道具
\
tx1'
;
propLabel
.
text
=
'步数道具
\
tx1'
;
break
;
break
;
}
}
this
.
tipsTex
.
text
=
'满星过关获得'
+
propLabel
.
text
;
}
else
if
(
this
.
data
.
prize
&&
this
.
data
.
prize
.
image
)
{
}
else
if
(
this
.
data
.
prize
&&
this
.
data
.
prize
.
image
)
{
this
.
noPrizeAgainBtn
.
visible
=
false
;
this
.
noPrizeAgainBtn
.
visible
=
false
;
this
.
prop
.
visible
=
false
;
this
.
prop
.
visible
=
false
;
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
this
.
data
.
prize
.
image
);
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
this
.
data
.
prize
.
image
);
this
.
tipsTex
.
text
=
'闯关成功!获得抽大奖机会!'
;
}
}
}
}
private
lightEffect
()
{
private
lightEffect
()
{
Tween
.
get
(
this
.
light1
,
{
loop
:
true
})
Tween
.
get
(
this
.
light1
,
{
loop
:
true
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
to
({
rotation
:
360
},
12000
);
.
to
({
rotation
:
360
},
12000
);
Tween
.
get
(
this
.
light2
,
{
loop
:
true
})
Tween
.
get
(
this
.
light2
,
{
loop
:
true
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
to
({
rotation
:
-
360
},
12000
);
.
to
({
rotation
:
-
360
},
12000
);
}
}
start
(
data
)
{
start
(
data
)
{
...
@@ -118,7 +119,7 @@ export class SuccessPrizePanel extends Panel {
...
@@ -118,7 +119,7 @@ export class SuccessPrizePanel extends Panel {
* 挑战满星
* 挑战满星
*/
*/
private
again
()
{
private
again
()
{
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
});
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
});
super
.
hidePanel
();
super
.
hidePanel
();
}
}
...
@@ -129,7 +130,7 @@ export class SuccessPrizePanel extends Panel {
...
@@ -129,7 +130,7 @@ export class SuccessPrizePanel extends Panel {
if
(
this
.
data
.
level
==
120
)
{
if
(
this
.
data
.
level
==
120
)
{
changeScene
(
MapScene
);
changeScene
(
MapScene
);
}
else
{
}
else
{
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
+
1
});
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
+
1
});
}
}
super
.
hidePanel
();
super
.
hidePanel
();
}
}
...
@@ -137,7 +138,7 @@ export class SuccessPrizePanel extends Panel {
...
@@ -137,7 +138,7 @@ export class SuccessPrizePanel extends Panel {
public
goPrize
()
{
public
goPrize
()
{
// 去抽奖
// 去抽奖
changeScene
(
LotteryScene
,
{
level
:
this
.
data
.
level
})
changeScene
(
LotteryScene
,
{
level
:
this
.
data
.
level
})
super
.
hidePanel
();
super
.
hidePanel
();
}
}
...
...
src/scene/map/CheckBtn.ts
View file @
7f385f06
...
@@ -54,13 +54,13 @@ export default class CheckBtn extends Container {
...
@@ -54,13 +54,13 @@ export default class CheckBtn extends Container {
private
_data
:
any
=
null
;
private
_data
:
any
=
null
;
public
set
data
(
data
)
{
public
set
data
(
data
)
{
this
.
_data
=
data
;
this
.
_data
=
data
;
this
.
checkData
.
isPlayed
=
true
;
if
(
!
data
)
return
;
if
(
!
data
)
return
;
if
(
!
data
.
isVisitSuccess
)
return
;
if
(
!
data
.
isVisitSuccess
)
return
;
this
.
enabled
=
data
.
isVisitSuccess
;
this
.
enabled
=
data
.
isVisitSuccess
;
this
.
starCount
=
data
.
stars
;
this
.
starCount
=
data
.
stars
;
this
.
checkData
=
data
;
this
.
checkData
=
data
;
this
.
checkData
.
isPlayed
=
true
;
this
.
_sendAwardType
=
data
.
sendAwardType
;
this
.
_sendAwardType
=
data
.
sendAwardType
;
}
}
...
...
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