Commit 171afeaa authored by Lwd's avatar Lwd

aaaa

parent d11fb8da
......@@ -4890,7 +4890,7 @@
},
"_enabled": true,
"Picture": {
"__id__": 99
"__id__": 100
},
"nodeState": [
{
......@@ -5834,7 +5834,7 @@
},
"_enabled": true,
"Picture": {
"__id__": 119
"__id__": 120
},
"nodeState": [
{
......
......@@ -7,7 +7,7 @@ cc.Class({
properties: {
Picture: {
default: null,
type: cc.Node,
type: cc.Sprite,
displayName: "图片"
},
nodeState: {
......@@ -50,9 +50,9 @@ cc.Class({
setPicture: function (url) {
//图片资源
g.res_mgr.getSpriteFrimeByUrl(url, (list) => {
this.Picture.getComponent(cc.Sprite).spriteFrame = list;
this.photoScare(this.Picture);
this.Picture.active = true;
this.Picture.spriteFrame = list;
this.photoScare(this.Picture.node);
this.Picture.node.active = true;
});
},
......
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