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
dd9d6742
Commit
dd9d6742
authored
Jul 15, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Success Panel Effect!
parent
f2b1003a
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
164 additions
and
94 deletions
+164
-94
workspace.xml
.idea/workspace.xml
+33
-45
babycare.getIndex.json
mock/miniTb/babycare.getIndex.json
+1
-1
闯关成功.png
resource/SuccessPanel/闯关成功.png
+0
-0
闯关成功Bg.png
resource/SuccessPanel/闯关成功Bg.png
+0
-0
res.json
resource/res.json
+1
-1
ResJson.ts
src/ResJson.ts
+1
-1
SkinJson.ts
src/SkinJson.ts
+46
-2
SuccessNoPrizePanel.ts
src/panels/SuccessNoPrizePanel.ts
+14
-1
SuccessPrizePanel.ts
src/panels/SuccessPrizePanel.ts
+15
-1
CheckBtn.ts
src/scene/map/CheckBtn.ts
+1
-1
MapPart.ts
src/scene/map/MapPart.ts
+11
-3
MapScene.ts
src/scene/map/MapScene.ts
+41
-38
No files found.
.idea/workspace.xml
View file @
dd9d6742
...
@@ -2,36 +2,17 @@
...
@@ -2,36 +2,17 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/common/comm_light.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_0.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_1.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_10.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_11.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_12.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_13.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_14.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_15.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_2.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_3.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_4.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_5.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_6.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_7.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_8.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/starLight/star_light_9.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/star_left_dis.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/star_left_en.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/闯关成功.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/SuccessPanel/闯关成功.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/star_mid_dis.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/SuccessPanel/star_dis.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/闯关成功Bg.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/SuccessPanel/闯关成功Bg.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/star_mid_en.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/SuccessPanel/star_en.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/star_right_dis.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/star_right_en.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/SuccessPanel/按钮-继续闯关.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/SuccessPanel/去抽奖.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/SkinJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/SkinJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/SkinJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/SkinJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/CheckBtn.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/CheckBtn.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapPart.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapPart.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
@@ -63,7 +44,7 @@
...
@@ -63,7 +44,7 @@
<property
name=
"RunOnceActivity.OpenProjectViewOnStart"
value=
"true"
/>
<property
name=
"RunOnceActivity.OpenProjectViewOnStart"
value=
"true"
/>
<property
name=
"RunOnceActivity.ShowReadmeOnStart"
value=
"true"
/>
<property
name=
"RunOnceActivity.ShowReadmeOnStart"
value=
"true"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/resource/
starLight
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/resource/
SuccessPanel
"
/>
<property
name=
"node.js.detected.package.tslint"
value=
"true"
/>
<property
name=
"node.js.detected.package.tslint"
value=
"true"
/>
<property
name=
"node.js.path.for.package.tslint"
value=
"project"
/>
<property
name=
"node.js.path.for.package.tslint"
value=
"project"
/>
<property
name=
"node.js.selected.package.tslint"
value=
"(autodetect)"
/>
<property
name=
"node.js.selected.package.tslint"
value=
"(autodetect)"
/>
...
@@ -71,16 +52,16 @@
...
@@ -71,16 +52,16 @@
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"run.code.analysis.last.selected.profile"
value=
"pProject Default"
/>
<property
name=
"run.code.analysis.last.selected.profile"
value=
"pProject Default"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
editor.preferences.fonts.default
"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
yiiguxing.plugin.translate
"
/>
<property
name=
"ts.external.directory.path"
value=
"$PROJECT_DIR$/node_modules/typescript/lib"
/>
<property
name=
"ts.external.directory.path"
value=
"$PROJECT_DIR$/node_modules/typescript/lib"
/>
</component>
</component>
<component
name=
"RecentsManager"
>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/starLight"
/>
<recent
name=
"$PROJECT_DIR$/resource/starLight"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPrizePanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/SuccessPrizePanel"
/>
<recent
name=
"$PROJECT_DIR$/resource/map"
/>
<recent
name=
"$PROJECT_DIR$/resource/map"
/>
<recent
name=
"$PROJECT_DIR$/resource/mapCheckPrizeEffect"
/>
<recent
name=
"$PROJECT_DIR$/resource/mapCheckPrizeEffect"
/>
<recent
name=
"$PROJECT_DIR$/resource/map_owl_effecrt"
/>
</key>
</key>
<key
name=
"MoveFile.RECENT_KEYS"
>
<key
name=
"MoveFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/resource/common"
/>
<recent
name=
"$PROJECT_DIR$/resource/common"
/>
...
@@ -134,7 +115,7 @@
...
@@ -134,7 +115,7 @@
<workItem
from=
"1594604662575"
duration=
"27200000"
/>
<workItem
from=
"1594604662575"
duration=
"27200000"
/>
<workItem
from=
"1594691193000"
duration=
"14409000"
/>
<workItem
from=
"1594691193000"
duration=
"14409000"
/>
<workItem
from=
"1594712553750"
duration=
"3451000"
/>
<workItem
from=
"1594712553750"
duration=
"3451000"
/>
<workItem
from=
"1594777357248"
duration=
"1
502
5000"
/>
<workItem
from=
"1594777357248"
duration=
"1
916
5000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
<created>
1594122339119
</created>
...
@@ -255,7 +236,14 @@
...
@@ -255,7 +236,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1594781505168
</updated>
<updated>
1594781505168
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"18"
/>
<task
id=
"LOCAL-00018"
summary=
"Success Panel Effect!"
>
<created>
1594794860900
</created>
<option
name=
"number"
value=
"00018"
/>
<option
name=
"presentableId"
value=
"LOCAL-00018"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1594794860900
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"19"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -281,26 +269,26 @@
...
@@ -281,26 +269,26 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</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=
"251"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594113080922"
/>
<state
x=
"754"
y=
"183"
key=
"CommitChangelistDialog2"
timestamp=
"15947
81504873
"
>
<state
x=
"754"
y=
"183"
key=
"CommitChangelistDialog2"
timestamp=
"15947
94860662
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"754"
y=
"183"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15947
81504873
"
/>
<state
x=
"754"
y=
"183"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15947
94860662
"
/>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1594793979488
"
>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1594798205706
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594793979488
"
/>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798205706
"
/>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.center"
timestamp=
"1594793979487
"
>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.center"
timestamp=
"1594798205706
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594793979487
"
/>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798205706
"
/>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.left"
timestamp=
"1594793979487
"
>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.left"
timestamp=
"1594798205705
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594793979487
"
/>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798205705
"
/>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.right"
timestamp=
"1594793979488
"
>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.right"
timestamp=
"1594798205706
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"882"
height=
"32
7"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594793979488
"
/>
<state
width=
"882"
height=
"32
1"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798205706
"
/>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
...
@@ -309,14 +297,14 @@
...
@@ -309,14 +297,14 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"210"
y=
"320"
key=
"RollbackChangesDialog/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594173186663"
/>
<state
x=
"210"
y=
"320"
key=
"RollbackChangesDialog/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594173186663"
/>
<state
x=
"3
1"
y=
"250"
key=
"SettingsEditor"
timestamp=
"1594195630991
"
>
<state
x=
"3
00"
y=
"248"
key=
"SettingsEditor"
timestamp=
"1594798992724
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"3
1"
y=
"250"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594195630991
"
/>
<state
x=
"3
00"
y=
"248"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798992724
"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"15947
26954085
"
>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"15947
94862317
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15947
26954085
"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15947
94862317
"
/>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
...
@@ -341,9 +329,9 @@
...
@@ -341,9 +329,9 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594712635697"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594712635697"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"159479
1368676
"
>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"159479
8315097
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159479
1368676
"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159479
8315097
"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
mock/miniTb/babycare.getIndex.json
View file @
dd9d6742
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"message"
:
"OK"
,
"message"
:
"OK"
,
"data"
:
{
"data"
:
{
"power"
:
100
,
"power"
:
100
,
"currentLevel"
:
120
,
"currentLevel"
:
96
,
"tools"
:
{
"tools"
:
{
"STEPS"
:
1
,
"STEPS"
:
1
,
"BOOMS"
:
2
,
"BOOMS"
:
2
,
...
...
resource/SuccessPanel/闯关成功.png
View replaced file @
f2b1003a
View file @
dd9d6742
168 KB
|
W:
|
H:
136 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/SuccessPanel/闯关成功Bg.png
View replaced file @
f2b1003a
View file @
dd9d6742
166 KB
|
W:
|
H:
135 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/res.json
View file @
dd9d6742
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
"name"
:
"fiveVerHorDis"
"name"
:
"fiveVerHorDis"
},
},
{
{
"keys"
:
"
bg_loading_back.jp
g"
,
"keys"
:
"
img_line1.png,img_line2.png,img_line3.png,img_line4.png,img_line5.png,loadingBg.jpg,loadingBg2.png,loadingPro0.png,loadingPro1.png,loadingPro10.png,loadingPro11.png,loadingPro2.png,loadingPro3.png,loadingPro4.png,loadingPro5.png,loadingPro6.png,loadingPro7.png,loadingPro8.png,loadingPro9.png,loadingTitle.png,proDown.png,wheel.pn
g"
,
"name"
:
"loadingScene"
"name"
:
"loadingScene"
},
},
{
{
...
...
src/ResJson.ts
View file @
dd9d6742
...
@@ -73,7 +73,7 @@ export const ResJson = {
...
@@ -73,7 +73,7 @@ export const ResJson = {
"name"
:
"fiveVerHorDis"
"name"
:
"fiveVerHorDis"
},
},
{
{
"keys"
:
"
bg_loading_back.jp
g"
,
"keys"
:
"
img_line1.png,img_line2.png,img_line3.png,img_line4.png,img_line5.png,loadingBg.jpg,loadingBg2.png,loadingPro0.png,loadingPro1.png,loadingPro10.png,loadingPro11.png,loadingPro2.png,loadingPro3.png,loadingPro4.png,loadingPro5.png,loadingPro6.png,loadingPro7.png,loadingPro8.png,loadingPro9.png,loadingTitle.png,proDown.png,wheel.pn
g"
,
"name"
:
"loadingScene"
"name"
:
"loadingScene"
},
},
{
{
...
...
src/SkinJson.ts
View file @
dd9d6742
...
@@ -9,6 +9,28 @@ export const SkinJson = {
...
@@ -9,6 +9,28 @@ export const SkinJson = {
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
"name"
:
"light1"
,
"x"
:
155
,
"y"
:
280
,
"alpha"
:
0.8
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"comm_light.png"
},
"id"
:
"light1"
},
{
"name"
:
"light2"
,
"x"
:
155
,
"y"
:
280
,
"alpha"
:
0.8
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"comm_light.png"
},
"id"
:
"light2"
},
{
{
"name"
:
"闯关成功Bg"
,
"name"
:
"闯关成功Bg"
,
"x"
:
55
,
"x"
:
55
,
...
@@ -55,7 +77,7 @@ export const SkinJson = {
...
@@ -55,7 +77,7 @@ export const SkinJson = {
{
{
"name"
:
"关卡文字"
,
"name"
:
"关卡文字"
,
"x"
:
300
,
"x"
:
300
,
"y"
:
5
2
1
,
"y"
:
5
0
1
,
"alpha"
:
1
,
"alpha"
:
1
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
...
@@ -100,6 +122,28 @@ export const SkinJson = {
...
@@ -100,6 +122,28 @@ export const SkinJson = {
"y"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"type"
:
"container"
,
"children"
:
[
"children"
:
[
{
"name"
:
"light1"
,
"x"
:
155
,
"y"
:
280
,
"alpha"
:
0.8
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"comm_light.png"
},
"id"
:
"light1"
},
{
"name"
:
"light2"
,
"x"
:
155
,
"y"
:
280
,
"alpha"
:
0.8
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"comm_light.png"
},
"id"
:
"light2"
},
{
{
"name"
:
"闯关成功"
,
"name"
:
"闯关成功"
,
"x"
:
55
,
"x"
:
55
,
...
@@ -146,7 +190,7 @@ export const SkinJson = {
...
@@ -146,7 +190,7 @@ export const SkinJson = {
{
{
"name"
:
"关卡文字"
,
"name"
:
"关卡文字"
,
"x"
:
300
,
"x"
:
300
,
"y"
:
5
2
1
,
"y"
:
5
0
1
,
"alpha"
:
1
,
"alpha"
:
1
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
...
...
src/panels/SuccessNoPrizePanel.ts
View file @
dd9d6742
...
@@ -11,7 +11,7 @@ import { RES } from "../../module/RES";
...
@@ -11,7 +11,7 @@ import { RES } from "../../module/RES";
export
class
SuccessNoPrizePanel
extends
Panel
{
export
class
SuccessNoPrizePanel
extends
Panel
{
get
groupNames
()
{
get
groupNames
()
{
return
[
"SuccessPanel"
,
'starLight'
]
return
[
'SuccessPanel'
,
'starLight'
]
}
}
get
skinName
()
{
get
skinName
()
{
...
@@ -36,6 +36,8 @@ export class SuccessNoPrizePanel extends Panel {
...
@@ -36,6 +36,8 @@ export class SuccessNoPrizePanel extends Panel {
againBtn
:
FYGE
.
Button
;
againBtn
:
FYGE
.
Button
;
continueBtn
:
FYGE
.
Button
;
continueBtn
:
FYGE
.
Button
;
totalContinueBtn
:
FYGE
.
Button
;
totalContinueBtn
:
FYGE
.
Button
;
light1
:
Sprite
;
light2
:
Sprite
;
private
starGroup
:
SuccessStarGroup
=
null
;
private
starGroup
:
SuccessStarGroup
=
null
;
...
@@ -49,9 +51,20 @@ export class SuccessNoPrizePanel extends Panel {
...
@@ -49,9 +51,20 @@ export class SuccessNoPrizePanel extends Panel {
this
.
starGroup
=
this
.
addChild
(
new
SuccessStarGroup
());
this
.
starGroup
=
this
.
addChild
(
new
SuccessStarGroup
());
this
.
starGroup
.
position
.
set
(
373
,
680
);
this
.
starGroup
.
position
.
set
(
373
,
680
);
this
.
lightEffect
();
this
.
starGroup
.
play
(
3
);
this
.
starGroup
.
play
(
3
);
}
}
private
lightEffect
()
{
Tween
.
get
(
this
.
light1
,
{
loop
:
true
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
to
({
rotation
:
360
},
12000
);
Tween
.
get
(
this
.
light2
,
{
loop
:
true
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
to
({
rotation
:
-
360
},
12000
);
}
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
}
}
...
...
src/panels/SuccessPrizePanel.ts
View file @
dd9d6742
...
@@ -3,10 +3,11 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
...
@@ -3,10 +3,11 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import
{
SuccessStarGroup
}
from
"./SuccessNoPrizePanel"
;
import
{
SuccessStarGroup
}
from
"./SuccessNoPrizePanel"
;
import
Tween
=
FYGE
.
Tween
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
Ease
=
FYGE
.
Ease
;
import
Sprite
=
FYGE
.
Sprite
;
export
class
SuccessPrizePanel
extends
Panel
{
export
class
SuccessPrizePanel
extends
Panel
{
get
groupNames
()
{
get
groupNames
()
{
return
[
"SuccessPanel"
,
'starLight'
]
return
[
'SuccessPanel'
,
'starLight'
]
}
}
get
skinName
()
{
get
skinName
()
{
...
@@ -31,6 +32,8 @@ export class SuccessPrizePanel extends Panel {
...
@@ -31,6 +32,8 @@ export class SuccessPrizePanel extends Panel {
againBtn
:
FYGE
.
Button
;
againBtn
:
FYGE
.
Button
;
noPrizeAgainBtn
:
FYGE
.
Button
;
noPrizeAgainBtn
:
FYGE
.
Button
;
goPrizeBtn
:
FYGE
.
Button
;
goPrizeBtn
:
FYGE
.
Button
;
light1
:
Sprite
;
light2
:
Sprite
;
private
starGroup
:
SuccessStarGroup
=
null
;
private
starGroup
:
SuccessStarGroup
=
null
;
...
@@ -44,9 +47,20 @@ export class SuccessPrizePanel extends Panel {
...
@@ -44,9 +47,20 @@ export class SuccessPrizePanel extends Panel {
this
.
starGroup
=
this
.
addChild
(
new
SuccessStarGroup
());
this
.
starGroup
=
this
.
addChild
(
new
SuccessStarGroup
());
this
.
starGroup
.
position
.
set
(
373
,
678
);
this
.
starGroup
.
position
.
set
(
373
,
678
);
this
.
lightEffect
();
this
.
starGroup
.
play
(
4
);
this
.
starGroup
.
play
(
4
);
}
}
private
lightEffect
()
{
Tween
.
get
(
this
.
light1
,
{
loop
:
true
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
to
({
rotation
:
360
},
12000
);
Tween
.
get
(
this
.
light2
,
{
loop
:
true
})
.
set
({
anchorX
:
219.5
,
anchorY
:
219.5
})
.
to
({
rotation
:
-
360
},
12000
);
}
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
}
}
...
...
src/scene/map/CheckBtn.ts
View file @
dd9d6742
...
@@ -241,7 +241,7 @@ class CheckCurEffect extends Container {
...
@@ -241,7 +241,7 @@ class CheckCurEffect extends Container {
this
.
light1
.
anchorTexture
.
set
(
0.5
,
0.5
);
this
.
light1
.
anchorTexture
.
set
(
0.5
,
0.5
);
this
.
light2
.
anchorTexture
.
set
(
0.5
,
0.5
);
this
.
light2
.
anchorTexture
.
set
(
0.5
,
0.5
);
this
.
position
.
set
(
5
3
,
50
);
this
.
position
.
set
(
5
5
,
50
);
this
.
mouseEnable
=
this
.
mouseChildren
=
false
;
this
.
mouseEnable
=
this
.
mouseChildren
=
false
;
}
}
...
...
src/scene/map/MapPart.ts
View file @
dd9d6742
...
@@ -20,11 +20,19 @@ export default class MapPart extends Container {
...
@@ -20,11 +20,19 @@ export default class MapPart extends Container {
}
}
protected
initIcon
()
{
protected
initIcon
()
{
this
.
data
.
forEach
((
value
,
index
)
=>
{
// 坑爹的头像,所以倒着加,可以解决层级问题
for
(
let
i
=
this
.
data
.
length
-
1
;
i
>=
0
;
i
--
)
{
const
value
=
this
.
data
[
i
];
const
nBtn
=
this
.
addChild
(
new
CheckBtn
(
value
));
const
nBtn
=
this
.
addChild
(
new
CheckBtn
(
value
));
nBtn
.
position
.
set
(
this
.
btnPos
[
i
ndex
][
0
],
this
.
btnPos
[
index
][
1
]);
nBtn
.
position
.
set
(
this
.
btnPos
[
i
][
0
],
this
.
btnPos
[
i
][
1
]);
MapScene
.
checkArr
[
value
.
check
]
=
nBtn
;
MapScene
.
checkArr
[
value
.
check
]
=
nBtn
;
});
}
// this.data.forEach((value, index) => {
// const nBtn = this.addChild(new CheckBtn(value));
//
// nBtn.position.set(this.btnPos[index][0], this.btnPos[index][1]);
// MapScene.checkArr[value.check] = nBtn;
// });
}
}
}
}
src/scene/map/MapScene.ts
View file @
dd9d6742
...
@@ -5,7 +5,6 @@ import MapUI from "./MapUI";
...
@@ -5,7 +5,6 @@ import MapUI from "./MapUI";
import
MapMid
from
"./MapMid"
;
import
MapMid
from
"./MapMid"
;
import
CheckBtn
,
{
CHECK_TYPE
}
from
"./CheckBtn"
;
import
CheckBtn
,
{
CHECK_TYPE
}
from
"./CheckBtn"
;
import
{
layers
}
from
"../../../module/views/layers"
;
import
{
layers
}
from
"../../../module/views/layers"
;
import
{
sendTbNet
,
TbNetName
}
from
"../../TaoBaoNet"
;
import
ScrollPage
=
FYGE
.
ScrollPage
;
import
ScrollPage
=
FYGE
.
ScrollPage
;
import
Container
=
FYGE
.
Container
;
import
Container
=
FYGE
.
Container
;
import
{
Tools
}
from
"../../Tools"
;
import
{
Tools
}
from
"../../Tools"
;
...
@@ -50,54 +49,58 @@ export class MapScene extends Scene {
...
@@ -50,54 +49,58 @@ export class MapScene extends Scene {
this
.
initMap
();
this
.
initMap
();
this
.
updateMapCheck
();
this
.
updateMapCheck
();
showPanel
(
Success
PrizePanel
);
showPanel
(
Success
NoPrizePanel
)
}
}
private
updateMapCheck
()
{
private
updateMapCheck
()
{
sendTbNet
(
TbNetName
.
getIndex
,
{},
if
(
this
.
data
.
from
==
'loading'
)
{
(
success
,
res
)
=>
{
this
.
initMapByData
(
Tools
.
gameData
);
}
else
{
if
(
!
success
)
return
;
Tools
.
getIndex
().
then
((
success
)
=>
{
if
(
success
)
{
this
.
uiLayer
.
energyBox
.
count
=
res
.
data
.
power
;
this
.
initMapByData
(
Tools
.
gameData
);
}
});
}
}
const
currentLevel
=
res
.
data
.
currentLevel
;
private
initMapByData
(
data
)
{
this
.
uiLayer
.
energyBox
.
count
=
data
.
power
;
// 已经通关的
const
currentLevel
=
data
.
currentLevel
;
for
(
let
i
=
1
;
i
<
currentLevel
;
i
++
)
{
MapScene
.
checkArr
[
i
].
type
=
CHECK_TYPE
.
COM
;
MapScene
.
checkArr
[
i
].
enabled
=
true
;
}
// 当前关卡
// 已经通关的
if
(
currentLevel
<
121
&&
currentLevel
>
0
)
{
for
(
let
i
=
1
;
i
<
currentLevel
;
i
++
)
{
MapScene
.
checkArr
[
currentLevel
].
type
=
CHECK_TYPE
.
CUR
;
MapScene
.
checkArr
[
i
].
type
=
CHECK_TYPE
.
COM
;
MapScene
.
checkArr
[
currentLevel
].
enabled
=
true
;
MapScene
.
checkArr
[
i
].
enabled
=
true
;
!
this
.
mapAvatar
&&
(
this
.
mapAvatar
=
this
.
addChild
(
new
MapAvatar
()));
}
this
.
mapAvatar
.
parent
&&
this
.
mapAvatar
.
parent
.
removeChild
(
this
.
mapAvatar
);
MapScene
.
checkArr
[
currentLevel
].
addChild
(
this
.
mapAvatar
);
}
// 未通关的
// 当前关卡
for
(
let
i
=
currentLevel
+
1
;
i
<
121
;
i
++
)
{
if
(
currentLevel
<
121
&&
currentLevel
>
0
)
{
MapScene
.
checkArr
[
i
].
type
=
CHECK_TYPE
.
COM
;
MapScene
.
checkArr
[
currentLevel
].
type
=
CHECK_TYPE
.
CUR
;
MapScene
.
checkArr
[
i
].
enabled
=
false
;
MapScene
.
checkArr
[
currentLevel
].
enabled
=
true
;
}
!
this
.
mapAvatar
&&
(
this
.
mapAvatar
=
this
.
addChild
(
new
MapAvatar
()));
this
.
mapAvatar
.
parent
&&
this
.
mapAvatar
.
parent
.
removeChild
(
this
.
mapAvatar
);
MapScene
.
checkArr
[
currentLevel
].
addChild
(
this
.
mapAvatar
);
}
// 闯关记录里有的
// 未通关的
res
.
data
.
visitors
.
forEach
((
v
)
=>
{
for
(
let
i
=
currentLevel
+
1
;
i
<
121
;
i
++
)
{
MapScene
.
checkArr
[
v
.
level
].
data
=
v
;
MapScene
.
checkArr
[
i
].
type
=
CHECK_TYPE
.
COM
;
});
MapScene
.
checkArr
[
i
].
enabled
=
false
;
}
// 奖励关卡
// 闯关记录里有的
res
.
data
.
prize
s
.
forEach
((
v
)
=>
{
data
.
visitor
s
.
forEach
((
v
)
=>
{
MapScene
.
checkArr
[
v
.
level
].
isPrize
=
true
;
MapScene
.
checkArr
[
v
.
level
].
data
=
v
;
});
});
this
.
scrollToCheck
(
currentLevel
);
// 奖励关卡
data
.
prizes
.
forEach
((
v
)
=>
{
MapScene
.
checkArr
[
v
.
level
].
isPrize
=
true
;
});
}
this
.
scrollToCheck
(
currentLevel
);
);
}
}
public
initMap
()
{
public
initMap
()
{
...
...
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