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
e94f4a88
Commit
e94f4a88
authored
Aug 03, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8d902fec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
workspace.xml
.idea/workspace.xml
+1
-1
MapUI.ts
src/scene/map/MapUI.ts
+3
-0
No files found.
.idea/workspace.xml
View file @
e94f4a88
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
<workItem
from=
"1596079283722"
duration=
"2448000"
/>
<workItem
from=
"1596079283722"
duration=
"2448000"
/>
<workItem
from=
"1596185145914"
duration=
"75000"
/>
<workItem
from=
"1596185145914"
duration=
"75000"
/>
<workItem
from=
"1596187812585"
duration=
"636000"
/>
<workItem
from=
"1596187812585"
duration=
"636000"
/>
<workItem
from=
"1596418925126"
duration=
"33
28
000"
/>
<workItem
from=
"1596418925126"
duration=
"33
96
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
<created>
1594122339119
</created>
...
...
src/scene/map/MapUI.ts
View file @
e94f4a88
...
@@ -262,6 +262,7 @@ class PrizeBox extends Button {
...
@@ -262,6 +262,7 @@ class PrizeBox extends Button {
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
`level_
${
upLevel
}
`
]);
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
`level_
${
upLevel
}
`
]);
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
//有需要,到时再改
//有需要,到时再改
Tools
.
btnDelay
(
this
);
showToast
(
this
.
checkTip
.
text
+
"才可以抽奖哦"
)
showToast
(
this
.
checkTip
.
text
+
"才可以抽奖哦"
)
},
this
)
},
this
)
}
else
if
(
prizes
.
length
==
1
&&
+
prizes
[
0
].
level
==
120
)
{
}
else
if
(
prizes
.
length
==
1
&&
+
prizes
[
0
].
level
==
120
)
{
...
@@ -273,6 +274,7 @@ class PrizeBox extends Button {
...
@@ -273,6 +274,7 @@ class PrizeBox extends Button {
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
'level_120'
]);
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
'level_120'
]);
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
//有需要,到时再改
//有需要,到时再改
Tools
.
btnDelay
(
this
);
showToast
(
Tools
.
gameData
.
topAward
.
openPrizeStatus
showToast
(
Tools
.
gameData
.
topAward
.
openPrizeStatus
?
'已开奖'
:
this
.
tip
.
text
)
?
'已开奖'
:
this
.
tip
.
text
)
},
this
)
},
this
)
...
@@ -287,6 +289,7 @@ class PrizeBox extends Button {
...
@@ -287,6 +289,7 @@ class PrizeBox extends Button {
this
.
tip
.
text
=
`抽取
${
lowerLevel
}
关奖励`
;
this
.
tip
.
text
=
`抽取
${
lowerLevel
}
关奖励`
;
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
`level_
${
lowerLevel
}
`
]);
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
`level_
${
lowerLevel
}
`
]);
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
Tools
.
btnDelay
(
this
);
changeScene
(
LotteryScene
,
{
level
:
lowerLevel
})
changeScene
(
LotteryScene
,
{
level
:
lowerLevel
})
},
this
)
},
this
)
}
}
...
...
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