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
2d7db2f9
Commit
2d7db2f9
authored
Jul 27, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Success Panel Effect!
parent
bc4c2959
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
15 deletions
+32
-15
workspace.xml
.idea/workspace.xml
+20
-9
StartPanel.ts
src/panels/StartPanel.ts
+9
-6
StartPanelPrize.ts
src/panels/StartPanelPrize.ts
+3
-0
No files found.
.idea/workspace.xml
View file @
2d7db2f9
...
...
@@ -2,7 +2,9 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/src/Tools.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Tools.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanelPrize.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanelPrize.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -117,7 +119,7 @@
<workItem
from=
"1595555429502"
duration=
"13854000"
/>
<workItem
from=
"1595815330125"
duration=
"170000"
/>
<workItem
from=
"1595815541868"
duration=
"600000"
/>
<workItem
from=
"1595820295687"
duration=
"
3708
000"
/>
<workItem
from=
"1595820295687"
duration=
"
4487
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
...
...
@@ -343,7 +345,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1595584298167
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"33"
/>
<task
id=
"LOCAL-00033"
summary=
"Success Panel Effect!"
>
<created>
1595850578565
</created>
<option
name=
"number"
value=
"00033"
/>
<option
name=
"presentableId"
value=
"LOCAL-00033"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1595850578565
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"34"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
@@ -369,9 +378,10 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"251"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594113080922"
/>
<state
x=
"55
8"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2"
timestamp=
"1595584297912
"
>
<screen
x=
"3
1"
y=
"23"
width=
"1889
"
height=
"1177"
/>
<state
x=
"55
7"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2"
timestamp=
"1595850578271
"
>
<screen
x=
"3
0"
y=
"23"
width=
"1890
"
height=
"1177"
/>
</state>
<state
x=
"557"
y=
"183"
key=
"CommitChangelistDialog2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1595850578271"
/>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584297912"
/>
<state
width=
"883"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1595849720127"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
...
...
@@ -409,9 +419,10 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"300"
y=
"248"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798992724"
/>
<state
x=
"9
2"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1595584299423
"
>
<screen
x=
"3
1"
y=
"23"
width=
"1889
"
height=
"1177"
/>
<state
x=
"9
1"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1595850579791
"
>
<screen
x=
"3
0"
y=
"23"
width=
"1890
"
height=
"1177"
/>
</state>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1595850579791"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584299423"
/>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
...
...
@@ -437,10 +448,10 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595475548860"
/>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"15958
49266199
"
>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"15958
54750147
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"15958
49266199
"
/>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"15958
54750147
"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584259535"
/>
</component>
</project>
\ No newline at end of file
src/panels/StartPanel.ts
View file @
2d7db2f9
...
...
@@ -32,8 +32,8 @@ export class StartPanel 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
;
});
...
...
@@ -60,15 +60,18 @@ export class StartPanel extends Panel {
}
private
startGame
()
{
this
.
enableMouseEvt
(
false
);
if
(
!
this
.
data
.
isPlayed
&&
Tools
.
gameData
.
power
<=
0
)
{
// 体力不足
showPanel
(
NoEnergyPanel
);
this
.
enableMouseEvt
(
true
);
return
;
}
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
(
success
,
res
)
=>
{
this
.
enableMouseEvt
(
true
);
if
(
!
success
)
return
;
Tools
.
gameData
.
power
=
res
.
data
.
power
;
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
this
.
hidePanel
();
}
);
...
...
@@ -136,7 +139,7 @@ export class StartTargetItem extends Container {
// 变大的动效
public
playEffect
()
{
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
500
,
Ease
.
backOut
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
500
,
Ease
.
backOut
)
}
}
src/panels/StartPanelPrize.ts
View file @
2d7db2f9
...
...
@@ -62,12 +62,15 @@ export class StartPanelPrize extends Panel {
}
private
startGame
()
{
this
.
enableMouseEvt
(
false
);
if
(
!
this
.
data
.
isPlayed
&&
Tools
.
gameData
.
power
<=
0
)
{
// 体力不足
showPanel
(
NoEnergyPanel
);
this
.
enableMouseEvt
(
true
);
return
;
}
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
(
success
,
res
)
=>
{
this
.
enableMouseEvt
(
true
);
if
(
!
success
)
return
;
Tools
.
gameData
.
power
=
res
.
data
.
power
;
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
...
...
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