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
993e23a2
Commit
993e23a2
authored
Oct 10, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c81f5ae7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
SuccessPrizePanel.ts
src/panels/SuccessPrizePanel.ts
+13
-5
No files found.
src/panels/SuccessPrizePanel.ts
View file @
993e23a2
...
...
@@ -11,6 +11,7 @@ import { MapScene } from "../scene/map/MapScene";
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
Button
=
FYGE
.
Button
;
import
Texture
=
FYGE
.
Texture
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
const
propImg
=
{
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
...
...
@@ -32,8 +33,8 @@ export class SuccessPrizePanel extends Panel {
this
.
isShowing
=
true
;
this
.
anchor
.
set
(
375
,
812
);
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
400
,
Ease
.
backOut
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
400
,
Ease
.
backOut
)
.
call
(()
=>
{
this
.
isShowing
=
false
;
});
...
...
@@ -48,7 +49,7 @@ export class SuccessPrizePanel extends Panel {
initUi
()
{
const
{
stars
,
tool
,
prize
}
=
this
.
data
;
const
{
stars
,
tool
,
prize
}
=
this
.
data
;
this
.
tipsTex
.
textWidth
=
750
;
this
.
tipsTex
.
x
=
0
;
...
...
@@ -110,6 +111,13 @@ export class SuccessPrizePanel extends Panel {
private
lookPrize
()
{
/// TODO 查看奖品
console
.
log
(
'查看奖品'
);
sendTbNet
(
TbNetName
.
navigateTo
,
{
url
:
'/pages/myprize/myprize'
},
()
=>
{
},
true
);
changeScene
(
MapScene
);
super
.
hidePanel
();
}
...
...
@@ -118,7 +126,7 @@ export class SuccessPrizePanel extends Panel {
* 挑战满星
*/
private
again
()
{
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
});
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
});
super
.
hidePanel
();
}
...
...
@@ -129,7 +137,7 @@ export class SuccessPrizePanel extends Panel {
if
(
this
.
data
.
level
==
120
)
{
changeScene
(
MapScene
);
}
else
{
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
+
1
});
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
+
1
});
}
super
.
hidePanel
();
}
...
...
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