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
Hide 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";
...
@@ -11,6 +11,7 @@ import { MapScene } from "../scene/map/MapScene";
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
Button
=
FYGE
.
Button
;
import
Button
=
FYGE
.
Button
;
import
Texture
=
FYGE
.
Texture
;
import
Texture
=
FYGE
.
Texture
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
const
propImg
=
{
const
propImg
=
{
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
...
@@ -32,8 +33,8 @@ export class SuccessPrizePanel extends Panel {
...
@@ -32,8 +33,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
;
});
});
...
@@ -48,7 +49,7 @@ export class SuccessPrizePanel extends Panel {
...
@@ -48,7 +49,7 @@ export class SuccessPrizePanel extends Panel {
initUi
()
{
initUi
()
{
const
{
stars
,
tool
,
prize
}
=
this
.
data
;
const
{
stars
,
tool
,
prize
}
=
this
.
data
;
this
.
tipsTex
.
textWidth
=
750
;
this
.
tipsTex
.
textWidth
=
750
;
this
.
tipsTex
.
x
=
0
;
this
.
tipsTex
.
x
=
0
;
...
@@ -110,6 +111,13 @@ export class SuccessPrizePanel extends Panel {
...
@@ -110,6 +111,13 @@ export class SuccessPrizePanel extends Panel {
private
lookPrize
()
{
private
lookPrize
()
{
/// TODO 查看奖品
/// TODO 查看奖品
console
.
log
(
'查看奖品'
);
console
.
log
(
'查看奖品'
);
sendTbNet
(
TbNetName
.
navigateTo
,
{
url
:
'/pages/myprize/myprize'
},
()
=>
{
},
true
);
changeScene
(
MapScene
);
changeScene
(
MapScene
);
super
.
hidePanel
();
super
.
hidePanel
();
}
}
...
@@ -118,7 +126,7 @@ export class SuccessPrizePanel extends Panel {
...
@@ -118,7 +126,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 +137,7 @@ export class SuccessPrizePanel extends Panel {
...
@@ -129,7 +137,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
();
}
}
...
...
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