Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
db2d92bf
Commit
db2d92bf
authored
Nov 04, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d91c5a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
MapScene.ts
egret/src/mapScene/MapScene.ts
+8
-2
StartScene.ts
egret/src/startScene/StartScene.ts
+5
-1
No files found.
egret/src/mapScene/MapScene.ts
View file @
db2d92bf
...
...
@@ -268,7 +268,7 @@ export default class MapScene extends Scene {
const
offset
=
0
;
const
y0
=
this
.
scroll
.
viewport
.
scrollV
+
offset
;
const
y1
=
this
.
stage
.
stageHeight
+
this
.
scroll
.
viewport
.
scrollV
-
offset
;
console
.
log
(
y0
,
y1
);
//
console.log(y0, y1);
let
count
=
0
;
for
(
const
key
in
MapScene
.
iconHash
)
{
const
icon
=
MapScene
.
iconHash
[
key
];
...
...
@@ -403,7 +403,7 @@ export default class MapScene extends Scene {
}
enableIcon
(
level
)
{
MapScene
.
iconHash
[
level
].
filters
=
[]
;
this
.
resetGray
(
level
)
;
MapScene
.
starHash
[
level
].
visible
=
true
;
}
...
...
@@ -862,6 +862,12 @@ export default class MapScene extends Scene {
(
icon
[
'bmptxt'
]
as
eui
.
BitmapLabel
).
font
=
'nums3_fnt'
;
}
resetGray
(
order
:
number
)
{
const
icon
=
MapScene
.
iconHash
[
order
];
(
icon
[
'nums'
]
as
eui
.
Image
).
source
=
'icon_png'
;
(
icon
[
'bmptxt'
]
as
eui
.
BitmapLabel
).
font
=
'nums_fnt'
;
}
get
skinKey
()
{
return
'Map'
}
...
...
egret/src/startScene/StartScene.ts
View file @
db2d92bf
...
...
@@ -109,8 +109,11 @@ export const changeMapScene = (p?) => {
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAP_SCENE
,
data
);
}
let
_startSceneData
;
export
const
createData
=
()
=>
{
if
(
_startSceneData
)
return
_startSceneData
;
const
startSceneData
:
any
=
{};
_startSceneData
=
startSceneData
;
const
repeatCount
=
getRepeatCount
();
const
list
=
[];
...
...
@@ -126,7 +129,8 @@ export const createData = () => {
}
startSceneData
.
bottom
=
new
MapBottomPart
();
startSceneData
.
bottom
.
loadSkin
();
startSceneData
.
bottom
.
start
({
startSceneData
.
bottom
.
loadSkin
();
startSceneData
.
bottom
.
start
({
repeatHeight
:
list
[
0
].
height
,
topHeight
:
startSceneData
.
top
.
height
});
...
...
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