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
2c58de48
Commit
2c58de48
authored
Jul 14, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map effect
parent
8d1e4c27
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1126 additions
and
1125 deletions
+1126
-1125
workspace.xml
.idea/workspace.xml
+30
-100
SkinJson.ts
src/SkinJson.ts
+1002
-1015
RulePanel.ts
src/panels/RulePanel.ts
+49
-0
StartPanel.ts
src/panels/StartPanel.ts
+29
-1
StartPanelPrize.ts
src/panels/StartPanelPrize.ts
+13
-0
MapScene.ts
src/scene/map/MapScene.ts
+0
-9
MapUI.ts
src/scene/map/MapUI.ts
+3
-0
No files found.
.idea/workspace.xml
View file @
2c58de48
This diff is collapsed.
Click to expand it.
src/SkinJson.ts
View file @
2c58de48
This diff is collapsed.
Click to expand it.
src/panels/RulePanel.ts
0 → 100644
View file @
2c58de48
import
{
Panel
}
from
"../../module/views/Panel"
;
import
TextField
=
FYGE
.
TextField
;
import
TEXT_lINETYPE
=
FYGE
.
TEXT_lINETYPE
;
import
ScrollPage
=
FYGE
.
ScrollPage
;
import
{
Tools
}
from
"../Tools"
;
export
class
RulePanel
extends
Panel
{
get
groupNames
()
{
return
[
"RulePanel"
]
}
get
skinName
()
{
return
"RulePanel"
}
closeBtn
:
FYGE
.
Button
;
ruleTex
:
TextField
;
scroll
:
ScrollPage
;
initUi
()
{
}
start
(
data
)
{
super
.
start
();
const
rule
=
'1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
n
\\
r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
r
\\
r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
r
\\
r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
n
\\
r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
r
\\
r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
r
\\
r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
n
\\
r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
r
\\
r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。
\\
r
\\
r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。'
this
.
ruleTex
=
this
.
addChild
(
Tools
.
getText
(
rule
,
26
,
'#892a1a'
,
FYGE
.
TEXT_ALIGN
.
LEFT
,
570
));
this
.
ruleTex
.
lineType
=
TEXT_lINETYPE
.
MULTI
;
this
.
scroll
=
this
.
addChild
(
new
ScrollPage
(
570
,
600
,
this
.
ruleTex
.
textHeight
+
30
));
this
.
scroll
.
position
.
set
(
96
,
549
);
this
.
scroll
.
view
.
addChild
(
this
.
ruleTex
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
}
src/panels/StartPanel.ts
View file @
2c58de48
...
...
@@ -7,6 +7,8 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
PlayScene
}
from
"../scene/PlayScene"
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
export
class
StartPanel
extends
Panel
{
get
groupNames
()
{
...
...
@@ -23,6 +25,18 @@ export class StartPanel extends Panel {
startBtn2
:
FYGE
.
Button
;
startBtn
:
FYGE
.
Button
;
public
showAni
()
{
if
(
this
.
isShowing
)
return
;
this
.
isShowing
=
true
;
this
.
anchor
.
set
(
375
,
812
);
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
400
,
FYGE
.
Ease
.
backOut
)
.
call
(()
=>
{
this
.
isShowing
=
false
;
});
}
initUi
()
{
this
.
checkTex
.
textWidth
=
750
;
this
.
checkTex
.
textAlign
=
TEXT_ALIGN
.
CENTER
;
...
...
@@ -75,7 +89,11 @@ export class StartTarget extends Container {
}
else
if
(
passTarget
.
type
==
1
)
{
// 消除元素个数
passTarget
.
elements
.
forEach
((
v
,
i
)
=>
{
this
.
addChild
(
new
StartTargetItem
(
v
)).
x
=
pos
[
passTarget
.
elements
.
length
-
1
][
i
];
const
targetItem
=
this
.
addChild
(
new
StartTargetItem
(
v
));
targetItem
.
x
=
pos
[
passTarget
.
elements
.
length
-
1
][
i
];
setTimeout
(()
=>
{
targetItem
.
playEffect
();
},
i
*
200
);
});
}
...
...
@@ -97,5 +115,15 @@ export class StartTargetItem extends Container {
targetTex
.
strokeColor
=
'#eb5b57'
;
targetTex
.
stroke
=
3
;
this
.
anchor
.
set
(
50
,
79
);
this
.
scale
.
set
(
0
,
0
);
}
// 变大的动效
public
playEffect
()
{
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
500
,
Ease
.
backOut
)
}
}
src/panels/StartPanelPrize.ts
View file @
2c58de48
...
...
@@ -4,6 +4,7 @@ import { changeScene } from "../../module/ctrls";
import
{
PlayScene
}
from
"../scene/PlayScene"
;
import
{
StartTarget
}
from
"./StartPanel"
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
import
Tween
=
FYGE
.
Tween
;
export
class
StartPanelPrize
extends
Panel
{
get
groupNames
()
{
...
...
@@ -14,6 +15,18 @@ export class StartPanelPrize extends Panel {
return
"StartPanelPrize"
}
public
showAni
()
{
if
(
this
.
isShowing
)
return
;
this
.
isShowing
=
true
;
this
.
anchor
.
set
(
375
,
812
);
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
400
,
FYGE
.
Ease
.
backOut
)
.
call
(()
=>
{
this
.
isShowing
=
false
;
});
}
closeBtn
:
FYGE
.
Button
;
startBtn
:
FYGE
.
Button
;
startBtn2
:
FYGE
.
Button
;
...
...
src/scene/map/MapScene.ts
View file @
2c58de48
...
...
@@ -34,19 +34,14 @@ export class MapScene extends Scene {
protected
initUi
()
{
super
.
initUi
();
this
.
scrollPage
=
this
.
addChild
(
new
ScrollPage
(
750
,
layers
.
stageHeight
,
888
,
true
,
true
));
this
.
mapContainer
=
this
.
scrollPage
.
view
.
addChild
(
new
Container
());
this
.
uiLayer
=
this
.
addChild
(
new
MapUI
());
this
.
initMap
();
this
.
updateMapCheck
();
}
private
updateMapCheck
()
{
...
...
@@ -126,10 +121,6 @@ export class MapScene extends Scene {
this
.
scrollPage
.
maxDistance
=
maxHeight
;
this
.
scrollPage
.
scrollTo
(
maxHeight
,
0
);
// MapScene.checkArr.forEach(v => {
// v.type = CHECK_TYPE.PRI;
// v.enabled = false;
// });
this
.
scrollToCheck
(
1
);
}
...
...
src/scene/map/MapUI.ts
View file @
2c58de48
...
...
@@ -6,6 +6,8 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import
{
RES
}
from
"../../../module/RES"
;
import
{
Tools
}
from
"../../Tools"
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
showPanel
}
from
"../../../module/ctrls"
;
import
{
RulePanel
}
from
"../../panels/RulePanel"
;
export
default
class
MapUI
extends
Container
{
public
energyBox
:
EnergyBox
=
null
;
...
...
@@ -41,6 +43,7 @@ export default class MapUI extends Container {
case
this
.
ruleBtn
:
/// TODO 规则
console
.
log
(
'规则'
);
showPanel
(
RulePanel
);
break
;
case
this
.
myPrizeBtn
:
...
...
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