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
3454b109
Commit
3454b109
authored
Feb 06, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rule
parent
2b1692e2
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
81 additions
and
9 deletions
+81
-9
workspace.xml
.idea/workspace.xml
+18
-9
useStepBg.png
resource/UseStep/useStepBg.png
+0
-0
useStepCancel.png
resource/UseStep/useStepCancel.png
+0
-0
useStepOk.png
resource/UseStep/useStepOk.png
+0
-0
res.json
resource/res.json
+4
-0
ResJson.ts
src/ResJson.ts
+4
-0
UseStep.ts
src/panels/UseStep.ts
+43
-0
PlayScene.ts
src/scene/PlayScene.ts
+12
-0
No files found.
.idea/workspace.xml
View file @
3454b109
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/RulePanel/ruleBtn.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/UseStep/useStepBg.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/UseStep/useStepCancel.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/UseStep/useStepOk.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/panels/UseStep.ts"
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/RulePanel/活动规则背景.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/RulePanel/活动规则背景.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/common/关闭按钮.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/common/关闭按钮.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/scene/PlayScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/PlayScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/RulePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/RulePanel.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -43,13 +43,14 @@
...
@@ -43,13 +43,14 @@
<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
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/
src/panels
"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<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"
/>
<property
name=
"vue.rearranger.settings.migration"
value=
"true"
/>
<property
name=
"vue.rearranger.settings.migration"
value=
"true"
/>
</component>
</component>
<component
name=
"RecentsManager"
>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/src/panels"
/>
<recent
name=
"$PROJECT_DIR$/resource"
/>
<recent
name=
"$PROJECT_DIR$/resource"
/>
</key>
</key>
<key
name=
"MoveFile.RECENT_KEYS"
>
<key
name=
"MoveFile.RECENT_KEYS"
>
...
@@ -112,7 +113,7 @@
...
@@ -112,7 +113,7 @@
<option
name=
"presentableId"
value=
"Default"
/>
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1612576978320
</updated>
<updated>
1612576978320
</updated>
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612577003915"
duration=
"1
4842
000"
/>
<workItem
from=
"1612577003915"
duration=
"1
5938
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
<created>
1612581213298
</created>
...
@@ -135,7 +136,14 @@
...
@@ -135,7 +136,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1612597435229
</updated>
<updated>
1612597435229
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"4"
/>
<task
id=
"LOCAL-00004"
summary=
"Rule"
>
<created>
1612598313143
</created>
<option
name=
"number"
value=
"00004"
/>
<option
name=
"presentableId"
value=
"LOCAL-00004"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1612598313143
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"5"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -148,6 +156,7 @@
...
@@ -148,6 +156,7 @@
<MESSAGE
value=
"斐乐消消乐"
/>
<MESSAGE
value=
"斐乐消消乐"
/>
<MESSAGE
value=
"gameGuide"
/>
<MESSAGE
value=
"gameGuide"
/>
<MESSAGE
value=
"首页引导"
/>
<MESSAGE
value=
"首页引导"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"首页引导"
/>
<MESSAGE
value=
"Rule"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"Rule"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
resource/UseStep/useStepBg.png
0 → 100644
View file @
3454b109
455 KB
resource/UseStep/useStepCancel.png
0 → 100644
View file @
3454b109
40.5 KB
resource/UseStep/useStepOk.png
0 → 100644
View file @
3454b109
34.7 KB
resource/res.json
View file @
3454b109
...
@@ -64,6 +64,10 @@
...
@@ -64,6 +64,10 @@
"keys"
:
"道具不足背景.png"
,
"keys"
:
"道具不足背景.png"
,
"name"
:
"ToolsOutPanel"
"name"
:
"ToolsOutPanel"
},
},
{
"keys"
:
"useStepBg.png,useStepCancel.png,useStepOk.png"
,
"name"
:
"UseStep"
},
{
{
"keys"
:
"使用道具背景.png"
,
"keys"
:
"使用道具背景.png"
,
"name"
:
"UseToolPanel"
"name"
:
"UseToolPanel"
...
...
src/ResJson.ts
View file @
3454b109
...
@@ -64,6 +64,10 @@ export const ResJson = {
...
@@ -64,6 +64,10 @@ export const ResJson = {
"keys"
:
"道具不足背景.png"
,
"keys"
:
"道具不足背景.png"
,
"name"
:
"ToolsOutPanel"
"name"
:
"ToolsOutPanel"
},
},
{
"keys"
:
"useStepBg.png,useStepCancel.png,useStepOk.png"
,
"name"
:
"UseStep"
},
{
{
"keys"
:
"使用道具背景.png"
,
"keys"
:
"使用道具背景.png"
,
"name"
:
"UseToolPanel"
"name"
:
"UseToolPanel"
...
...
src/panels/UseStep.ts
0 → 100644
View file @
3454b109
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Tools
}
from
"../Tools"
;
import
{
RES
}
from
"../../module/RES"
;
import
Button
=
FYGE
.
Button
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
export
class
UseStep
extends
Panel
{
get
groupNames
()
{
return
[
"UseStep"
]
};
initUi
()
{
this
.
addChild
(
Tools
.
getSprite
(
'useStepBg.png'
)).
position
.
set
(
86
,
512
);
this
.
addChild
(
Tools
.
getText
(
/// TODO 道具加步数
`确定要使用步数道具+5步数吗?`
,
33
,
'#744f1d'
,
TEXT_ALIGN
.
CENTER
,
750
,
0
,
685
));
this
.
addChild
(
new
Button
(
RES
.
getRes
(
'useStepOk.png'
)))
.
addEventListener
(
MouseEvent
.
CLICK
,
()
=>
{
this
.
hidePanel
();
this
.
data
.
ok
();
},
this
)
.
position
.
set
(
392
,
865
);
this
.
addChild
(
new
Button
(
RES
.
getRes
(
'useStepCancel.png'
)))
.
addEventListener
(
MouseEvent
.
CLICK
,
()
=>
{
this
.
hidePanel
();
this
.
data
.
cancel
();
},
this
)
.
position
.
set
(
107
,
865
);
this
.
addChild
(
new
Button
(
RES
.
getRes
(
'关闭按钮.png'
)))
.
addEventListener
(
MouseEvent
.
CLICK
,
()
=>
{
this
.
hidePanel
();
this
.
data
.
cancel
();
},
this
)
.
position
.
set
(
640
,
494
);
}
}
src/scene/PlayScene.ts
View file @
3454b109
...
@@ -63,6 +63,7 @@ import { FirstPropGift } from '../something/uis/FirstPropGift';
...
@@ -63,6 +63,7 @@ import { FirstPropGift } from '../something/uis/FirstPropGift';
import
{
bonus_lottie
}
from
'../lotties/bonus_lottie'
;
import
{
bonus_lottie
}
from
'../lotties/bonus_lottie'
;
import
{
GDispatcher
}
from
'../Main'
;
import
{
GDispatcher
}
from
'../Main'
;
import
{
G_EVENT
}
from
'../common/G_EVENT'
;
import
{
G_EVENT
}
from
'../common/G_EVENT'
;
import
{
UseStep
}
from
"../panels/UseStep"
;
const
aniClass
=
{
const
aniClass
=
{
"BoomAni"
:
BoomAni
,
"BoomAni"
:
BoomAni
,
...
@@ -888,6 +889,17 @@ export class PlayScene extends Scene {
...
@@ -888,6 +889,17 @@ export class PlayScene extends Scene {
this
.
isShowWarning
=
false
;
this
.
isShowWarning
=
false
;
this
.
resetWarning
();
this
.
resetWarning
();
}
}
// 体力改成弹窗
if
(
prop
==
PropType
.
STEPS
)
{
showPanel
(
UseStep
,
{
cancel
:
()
=>
this
.
addEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
),
//还原事件
ok
:
()
=>
this
.
sendPropUse
(
PropType
.
STEPS
)
});
return
;
}
// 体力改成弹窗
//添加引导蒙层
//添加引导蒙层
this
.
addChild
(
this
.
propGuide
);
this
.
addChild
(
this
.
propGuide
);
this
.
propGuide
.
init
(
prop
);
this
.
propGuide
.
init
(
prop
);
...
...
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