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
0ae2d7c5
Commit
0ae2d7c5
authored
Dec 21, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新tiny-image库
parent
5753aeeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
HtmlView.ts
src/zeroing/game-warpper/nodes/HtmlView.ts
+4
-0
TextInput.ts
src/zeroing/game-warpper/nodes/TextInput.ts
+4
-3
No files found.
src/zeroing/game-warpper/nodes/HtmlView.ts
View file @
0ae2d7c5
...
...
@@ -50,4 +50,8 @@ export class HtmlView extends FloatDisplay implements IUIComponent{
return
this
;
}
}
protected
__cloneSelf
()
{
return
new
FloatDisplay
();
}
}
src/zeroing/game-warpper/nodes/TextInput.ts
View file @
0ae2d7c5
...
...
@@ -92,6 +92,8 @@ export class TextInput extends Label implements IUIComponent {
style
.
padding
=
'0'
;
style
.
border
=
'0'
;
style
.
backgroundColor
=
'transparent'
;
style
.
userSelect
=
'text'
;
style
.
webkitUserSelect
=
'text'
;
input
.
type
=
'text'
;
input
.
addEventListener
(
'focus'
,
this
.
onFocus
);
...
...
@@ -219,13 +221,10 @@ export class TextInput extends Label implements IUIComponent {
input
.
style
.
pointerEvents
=
'none'
;
input
.
blur
();
this
.
text
=
input
.
value
;
this
.
fillColor
=
this
.
_oldFillColor
;
this
.
strokeColor
=
this
.
_oldStrokeColor
;
this
.
dispatchEvent
(
Event
.
BLUR
);
}
private
onFocus
=
(
e
)
=>
{
...
...
@@ -235,6 +234,8 @@ export class TextInput extends Label implements IUIComponent {
private
onBlur
=
(
e
)
=>
{
this
.
setBlur
();
this
.
dispatchEvent
(
Event
.
BLUR
);
delayScrollTop
();
};
...
...
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