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
241d4727
Commit
241d4727
authored
May 28, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
c91839d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
EditorStage.ts
src/zeroing/game-warpper/EditorStage.ts
+1
-1
Image.ts
src/zeroing/game-warpper/nodes/Image.ts
+8
-0
No files found.
src/zeroing/game-warpper/EditorStage.ts
View file @
241d4727
...
@@ -11,7 +11,7 @@ import {Point} from "../../2d/math/Point";
...
@@ -11,7 +11,7 @@ import {Point} from "../../2d/math/Point";
import
{
alignMgr
}
from
"../decorators/AlignManager"
;
import
{
alignMgr
}
from
"../decorators/AlignManager"
;
const
propPrefixFilter
=
[
'_'
,
'__'
,
'$'
];
const
propPrefixFilter
=
[
'_'
,
'__'
,
'$'
];
const
includeProps
=
[
'_width'
,
'_height'
,
'worldMatrix'
,
'texture'
];
const
includeProps
=
[
'_width'
,
'_height'
,
'worldMatrix'
];
const
excludeProps
=
[
'eventTypes'
,
'eventTypes1'
,
'tempDisplayObjectParent'
,
'renderable'
,
'destroyed'
,
'children'
,
'start'
,
'pluginName'
,
'isUI'
,
'crossOrigin'
];
const
excludeProps
=
[
'eventTypes'
,
'eventTypes1'
,
'tempDisplayObjectParent'
,
'renderable'
,
'destroyed'
,
'children'
,
'start'
,
'pluginName'
,
'isUI'
,
'crossOrigin'
];
const
propTypeFilter
=
[
'function'
,
'object'
];
const
propTypeFilter
=
[
'function'
,
'object'
];
const
offsetPrefix
=
'offset_'
;
const
offsetPrefix
=
'offset_'
;
...
...
src/zeroing/game-warpper/nodes/Image.ts
View file @
241d4727
...
@@ -120,4 +120,12 @@ export class Image extends Sprite implements IUIComponent {
...
@@ -120,4 +120,12 @@ export class Image extends Sprite implements IUIComponent {
private
onDataMutated
(
e
=
null
)
{
private
onDataMutated
(
e
=
null
)
{
this
.
_setSourceDirect
(
dataCenter
.
formatString
(
this
.
_originText
,
this
.
_escapes
));
this
.
_setSourceDirect
(
dataCenter
.
formatString
(
this
.
_originText
,
this
.
_escapes
));
}
}
get
textureWidth
(){
return
this
.
_texture
?
this
.
_texture
.
width
:
0
;
}
get
textureHeight
(){
return
this
.
_texture
?
this
.
_texture
.
height
:
0
;
}
}
}
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