Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
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
劳工
zeroing-engine
Commits
f9d2e853
Commit
f9d2e853
authored
May 27, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
5bb3bb7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ScrollList.ts
src/zeroing/game-warpper/nodes/ScrollList.ts
+6
-1
No files found.
src/zeroing/game-warpper/nodes/ScrollList.ts
View file @
f9d2e853
...
@@ -7,6 +7,7 @@ import {Event} from "../../../2d/events";
...
@@ -7,6 +7,7 @@ import {Event} from "../../../2d/events";
import
{
proxyMethods
}
from
"./ScrollView"
;
import
{
proxyMethods
}
from
"./ScrollView"
;
import
Container
from
"../../../2d/display/Container"
;
import
Container
from
"../../../2d/display/Container"
;
import
{
IUIComponent
}
from
"./IUIComponent"
;
import
{
IUIComponent
}
from
"./IUIComponent"
;
import
{
editorMode
}
from
"../../launcher"
;
export
class
ScrollListItem
extends
ScrollListItemBase
implements
IUIComponent
{
export
class
ScrollListItem
extends
ScrollListItemBase
implements
IUIComponent
{
isUI
=
true
;
isUI
=
true
;
...
@@ -40,13 +41,17 @@ export class ScrollList extends ScrollListBase {
...
@@ -40,13 +41,17 @@ export class ScrollList extends ScrollListBase {
}
}
protected
onNextFrame
(
event
)
{
protected
onNextFrame
(
event
)
{
if
(
editorMode
)
{
return
;
}
this
.
firstItem
=
<
Container
>
this
.
removeChildAt
(
0
);
this
.
firstItem
=
<
Container
>
this
.
removeChildAt
(
0
);
this
.
updateViewRect
();
this
.
updateViewRect
();
}
}
protected
createItem
():
any
{
protected
createItem
():
any
{
let
item
=
<
ScrollListItem
>
super
.
createItem
();
let
item
=
<
ScrollListItem
>
super
.
createItem
();
item
.
setView
(
this
.
firstItem
.
clone
(
this
.
cloneEvents
,
this
.
cloneScripts
));
;
item
.
setView
(
this
.
firstItem
.
clone
(
this
.
cloneEvents
,
this
.
cloneScripts
))
return
item
;
return
item
;
}
}
...
...
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