Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
8d5d242c
You need to sign in or sign up before continuing.
Commit
8d5d242c
authored
Nov 08, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5fdbab8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
layers.ts
egret/libs/new_wx/views/layers.ts
+4
-10
performance.md
performance.md
+2
-0
No files found.
egret/libs/new_wx/views/layers.ts
View file @
8d5d242c
...
...
@@ -15,21 +15,15 @@ class Layers extends eui.UILayer {
this
.
addChild
(
this
.
_topLayer
);
}
_removeTag
:
number
;
_bg
:
egret
.
Bitmap
;
addFirstBackground
(
bitmap
:
egret
.
Bitmap
):
any
{
if
(
!
this
.
_removeTag
)
{
this
.
_bg
=
bitmap
;
this
.
_bottomLayer
.
addChild
(
bitmap
);
}
this
.
_bg
=
bitmap
;
this
.
_bottomLayer
.
addChild
(
bitmap
);
}
removeFirstBackground
():
any
{
this
.
_removeTag
=
1
;
if
(
this
.
_bg
)
{
this
.
_bottomLayer
.
removeChild
(
this
.
_bg
);
this
.
_bg
=
null
;
}
this
.
_bottomLayer
.
removeChild
(
this
.
_bg
);
this
.
_bg
=
null
;
}
get
topLayer
()
{
return
this
.
_topLayer
}
...
...
performance.md
0 → 100644
View file @
8d5d242c
首屏显示时间:2689ms
MainBase.ts:187 start scene显示时间:3750ms
\ No newline at end of file
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