Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
svge-egret
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
王剑峰
svge-egret
Commits
3e032468
Commit
3e032468
authored
Oct 14, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
6f3c8807
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
svga.egret.min.js
build/svga.egret.min.js
+1
-1
MovieClip.js
src/Egret/MovieClip.js
+6
-6
No files found.
build/svga.egret.min.js
View file @
3e032468
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/Egret/MovieClip.js
View file @
3e032468
...
@@ -196,16 +196,16 @@ export class MovieClip extends egret.DisplayObjectContainer {
...
@@ -196,16 +196,16 @@ export class MovieClip extends egret.DisplayObjectContainer {
* @param imagekey 对应的imagekey
* @param imagekey 对应的imagekey
* @param imageUrl 图片路径,以后考虑支持多种形式
* @param imageUrl 图片路径,以后考虑支持多种形式
*/
*/
setImage
(
image
k
ey
,
imageUrl
)
{
setImage
(
image
K
ey
,
imageUrl
)
{
if
(
!
this
.
textures
[
image
k
ey
])
return
if
(
!
this
.
textures
[
image
K
ey
])
return
let
texture
=
this
.
textures
[
image
k
ey
]
let
texture
=
this
.
textures
[
image
K
ey
]
var
width
=
texture
.
textureWidth
;
var
width
=
texture
.
textureWidth
;
var
height
=
texture
.
textureHeight
;
var
height
=
texture
.
textureHeight
;
getAsset
(
imageUrl
,
function
(
tex
,
key
)
{
getAsset
(
imageUrl
,
function
(
tex
,
key
)
{
for
(
var
i
=
0
;
i
<
this
.
children
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
$
children
.
length
;
i
++
)
{
let
child
=
this
.
children
[
i
]
let
child
=
this
.
$
children
[
i
]
//texture相等
//texture相等
if
(
child
.
image
key
==
imagek
ey
)
child
.
texture
=
tex
if
(
child
.
image
Key
==
imageK
ey
)
child
.
texture
=
tex
}
}
},
this
)
},
this
)
}
}
...
...
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