Commit 3e032468 authored by wjf's avatar wjf

l

parent 6f3c8807
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -196,16 +196,16 @@ export class MovieClip extends egret.DisplayObjectContainer {
* @param imagekey 对应的imagekey
* @param imageUrl 图片路径,以后考虑支持多种形式
*/
setImage(imagekey, imageUrl) {
if (!this.textures[imagekey]) return
let texture = this.textures[imagekey]
setImage(imageKey, imageUrl) {
if (!this.textures[imageKey]) return
let texture = this.textures[imageKey]
var width = texture.textureWidth;
var height = texture.textureHeight;
getAsset(imageUrl, function (tex, key) {
for (var i = 0; i < this.children.length; i++) {
let child = this.children[i]
for (var i = 0; i < this.$children.length; i++) {
let child = this.$children[i]
//texture相等
if (child.imagekey == imagekey) child.texture = tex
if (child.imageKey == imageKey) child.texture = tex
}
}, this)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment