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
31db33f5
Commit
31db33f5
authored
Aug 03, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1fb9b274
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
27 deletions
+25
-27
workspace.xml
.idea/workspace.xml
+14
-12
MapUI.ts
src/scene/map/MapUI.ts
+11
-15
No files found.
.idea/workspace.xml
View file @
31db33f5
...
...
@@ -3,6 +3,8 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -86,8 +88,8 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.flushRes"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -128,7 +130,7 @@
<workItem
from=
"1596079283722"
duration=
"2448000"
/>
<workItem
from=
"1596185145914"
duration=
"75000"
/>
<workItem
from=
"1596187812585"
duration=
"636000"
/>
<workItem
from=
"1596418925126"
duration=
"
7132
000"
/>
<workItem
from=
"1596418925126"
duration=
"
9113
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
...
...
@@ -447,38 +449,38 @@
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
x=
"131"
y=
"123"
width=
"730"
height=
"977"
key=
"DiffContextDialog/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596165868169"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"159643
4405974
"
>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"159643
9054570
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
4405974
"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
9054570
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"159643
4405973
"
>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"159643
9054567
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
4405973
"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
9054567
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918464"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"159643
4405972
"
>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"159643
9054566
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
4405972
"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
9054566
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577197"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918463"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"159643
4405973
"
>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"159643
9054569
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
4405973
"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
9054569
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594777965326"
/>
<state
x=
"209"
y=
"320"
key=
"RollbackChangesDialog"
timestamp=
"159643
5067937
"
>
<state
x=
"209"
y=
"320"
key=
"RollbackChangesDialog"
timestamp=
"159643
7158375
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
x=
"209"
y=
"320"
key=
"RollbackChangesDialog/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
5067937
"
/>
<state
x=
"209"
y=
"320"
key=
"RollbackChangesDialog/30.23.1890.1177@30.23.1890.1177"
timestamp=
"159643
7158375
"
/>
<state
x=
"210"
y=
"320"
key=
"RollbackChangesDialog/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594173186663"
/>
<state
x=
"289"
y=
"314"
key=
"SettingsEditor"
timestamp=
"1596079390860"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
...
...
src/scene/map/MapUI.ts
View file @
31db33f5
...
...
@@ -272,9 +272,9 @@ class PrizeBox extends Button {
this
.
scale
.
set
(
1.2
,
1.2
);
this
.
checkTip
=
this
.
addChild
(
Tools
.
getText
(
'再闯XXX关'
,
22
,
'再闯XXX关'
,
18
,
'#ffffff'
,
TEXT_ALIGN
.
CENTER
,
158
,
0
,
6
4
158
,
0
,
6
8
));
this
.
tip
=
this
.
addChild
(
Tools
.
getText
(
...
...
@@ -286,12 +286,10 @@ class PrizeBox extends Button {
this
.
prizeImg
=
this
.
addChild
(
Tools
.
getSprite
(
'map_star_enable.png'
,
39
,
150
));
// 490*180
this
.
prizeImg
.
width
=
125
;
this
.
prizeImg
.
height
=
46
;
this
.
prizeImg
.
scale
.
set
(
1.2
,
1.2
);
this
.
prizeImg
.
x
=
(
this
.
width
-
98
)
/
2
-
28
;
// this.prizeImg.anchorTexture.x = 0.5;
this
.
prizeImg
.
y
-=
12
;
this
.
prizeImg
.
y
-=
40
;
this
.
prizeImg
.
width
=
204
;
this
.
prizeImg
.
height
=
80
;
this
.
prizeImg
.
x
=
(
this
.
width
-
98
)
/
2
-
70
;
const
prizes
=
Tools
.
gameData
.
prizes
;
if
(
prizes
.
length
<=
0
)
{
...
...
@@ -306,8 +304,9 @@ class PrizeBox extends Button {
}
});
console
.
log
(
upLevel
,
dLevel
);
this
.
checkTip
.
text
=
`再闯
${
dLevel
}
关`
;
this
.
tip
.
text
=
'有机会获得'
;
this
.
checkTip
.
text
=
`再闯
${
dLevel
}
关可抽`
;
// this.tip.text = '有机会获得';
this
.
tip
.
text
=
''
;
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
`level_
${
upLevel
}
`
]);
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
//有需要,到时再改
...
...
@@ -324,10 +323,6 @@ class PrizeBox extends Button {
// ? '已开奖' : '等待开奖';
// this.tip.text = `8月31日10点`;
this
.
tip
.
text
=
``
;
this
.
prizeImg
.
y
-=
28
;
this
.
prizeImg
.
width
=
204
;
this
.
prizeImg
.
height
=
80
;
this
.
prizeImg
.
x
=
(
this
.
width
-
98
)
/
2
-
70
;
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
'level_120'
]);
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
...
...
@@ -344,7 +339,8 @@ class PrizeBox extends Button {
}
});
this
.
checkTip
.
text
=
`点击抽奖`
;
this
.
tip
.
text
=
`抽取
${
lowerLevel
}
关奖励`
;
// this.tip.text = `抽取${lowerLevel}关奖励`;
this
.
tip
.
text
=
``
;
this
.
prizeImg
.
texture
=
Texture
.
fromUrl
(
Tools
.
baseInfo
.
levelPrize
[
`level_
${
lowerLevel
}
`
]);
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
Tools
.
btnDelay
(
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