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
2ffb8f37
Commit
2ffb8f37
authored
Jul 20, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Success Panel Effect!
parent
de939ebd
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
155 deletions
+75
-155
workspace.xml
.idea/workspace.xml
+24
-30
res.json
resource/res.json
+1
-56
ResJson.ts
src/ResJson.ts
+1
-56
SuccessPrizePanel.ts
src/panels/SuccessPrizePanel.ts
+34
-0
TaskPanel.ts
src/panels/TaskPanel.ts
+8
-6
MapScene.ts
src/scene/map/MapScene.ts
+7
-7
No files found.
.idea/workspace.xml
View file @
2ffb8f37
...
...
@@ -2,25 +2,12 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/SuccessPanel/道具圆圈.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/panels/NoEnergyPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/babycare.exchange.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.exchange.json"
afterDir=
"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$/mock/miniTb/babycare.queryCredits.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.queryCredits.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/playScene/boomBtn.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/common/boomBtn.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/playScene/hammerBtn.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/common/hammerBtn.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/playScene/stepBtn.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/common/stepBtn.png"
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/SkinJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/SkinJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/BuyPowerPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/BuyPowerPanel.ts"
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"
/>
<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/TaskPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/TaskPanel.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/MapUI.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -102,8 +89,8 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.dev"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -126,7 +113,7 @@
<workItem
from=
"1594777357248"
duration=
"24313000"
/>
<workItem
from=
"1594864188027"
duration=
"20343000"
/>
<workItem
from=
"1594950738970"
duration=
"22032000"
/>
<workItem
from=
"1595209499266"
duration=
"5
110
000"
/>
<workItem
from=
"1595209499266"
duration=
"5
774
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
...
...
@@ -275,7 +262,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1594975042897
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"22"
/>
<task
id=
"LOCAL-00022"
summary=
"Success Panel Effect!"
>
<created>
1595214630434
</created>
<option
name=
"number"
value=
"00022"
/>
<option
name=
"presentableId"
value=
"LOCAL-00022"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1595214630434
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"23"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
@@ -301,30 +295,30 @@
<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=
"754"
y=
"183"
key=
"CommitChangelistDialog2"
timestamp=
"159
497504262
7"
>
<state
x=
"754"
y=
"183"
key=
"CommitChangelistDialog2"
timestamp=
"159
521463013
7"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"754"
y=
"183"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159
497504262
7"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1595212352913
"
>
<state
x=
"754"
y=
"183"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159
521463013
7"
/>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1595215073648
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
width=
"882"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1594827479519"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595212352913
"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"1595212352912
"
>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595215073648
"
/>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"1595215073646
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
width=
"882"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1594827479518"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595212352912
"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"1595212352911
"
>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595215073646
"
/>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"1595215073646
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
width=
"882"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1594827479517"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595212352911
"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"1595212352912
"
>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595215073646
"
/>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"1595215073647
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
width=
"882"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1594827479518"
/>
<state
width=
"87
6"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595212352912
"
/>
<state
width=
"87
1"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595215073647
"
/>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
...
...
@@ -337,10 +331,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=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"159
4975045116
"
>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"159
5214634021
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159
4975045116
"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159
5214634021
"
/>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
...
...
@@ -365,9 +359,9 @@
<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=
"1594712635697"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"159521
3710637
"
>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"159521
5066572
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159521
3710637
"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"159521
5066572
"
/>
</component>
</project>
\ No newline at end of file
resource/res.json
View file @
2ffb8f37
This diff is collapsed.
Click to expand it.
src/ResJson.ts
View file @
2ffb8f37
This diff is collapsed.
Click to expand it.
src/panels/SuccessPrizePanel.ts
View file @
2ffb8f37
...
...
@@ -9,6 +9,9 @@ import Container = FYGE.Container;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
{
RES
}
from
"../../module/RES"
;
import
TextField
=
FYGE
.
TextField
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
MapScene
}
from
"../scene/map/MapScene"
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
export
class
SuccessPrizePanel
extends
Panel
{
get
groupNames
()
{
...
...
@@ -110,8 +113,39 @@ export class SuccessPrizePanel extends Panel {
super
.
start
();
}
/**
* 挑战满星
*/
private
again
()
{
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
});
super
.
hidePanel
();
}
/**
* 继续闯关
*/
private
continue
()
{
console
.
log
(
1
);
changeScene
(
MapScene
,
{
level
:
this
.
data
.
level
+
1
});
super
.
hidePanel
();
}
public
goPrize
(){
/// TODO 去抽奖
}
public
hidePanel
()
{
changeScene
(
MapScene
);
super
.
hidePanel
();
}
initEvents
()
{
super
.
initEvents
();
this
.
againBtn
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
again
,
this
);
this
.
noPrizeAgainBtn
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
continue
,
this
);
this
.
goPrizeBtn
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
goPrize
,
this
);
}
removeEvents
()
{
...
...
src/panels/TaskPanel.ts
View file @
2ffb8f37
...
...
@@ -37,16 +37,18 @@ export class TaskPanel extends Panel {
}
public
updateTask
()
{
// const _bd: { string: Button }
= {
//
'browseGoods': this.taskBtn1,
//
'invites': this.taskBtn2,
//
'follow': this.taskBtn3,
//
'member': this.taskBtn4,
//
}
const
_bd
=
{
'browseGoods'
:
this
.
taskBtn1
,
'invites'
:
this
.
taskBtn2
,
'follow'
:
this
.
taskBtn3
,
'member'
:
this
.
taskBtn4
,
}
sendTbNet
(
TbNetName
.
getTaskList
,
{},
(
success
,
res
)
=>
{
if
(
!
success
)
return
;
res
.
data
.
forEach
((
v
)
=>
{
});
}
);
}
...
...
src/scene/map/MapScene.ts
View file @
2ffb8f37
...
...
@@ -222,13 +222,13 @@ export class MapScene extends Scene {
// score: 666,
// stars: 3,
// isVisitSuccess: true,
// isPrizeLevel:
tru
e,
// tool: {
// type: 'HAMMERS',
// },
//
//
prize: {
//
//
image: 'https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png',
//
//
}
// isPrizeLevel:
fals
e,
//
//
tool: {
//
//
type: 'HAMMERS',
//
//
},
// prize: {
// image: 'https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png',
// }
// });
}
...
...
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