This commit is contained in:
tothvillar
2026-07-09 15:04:14 +08:00
commit e896e2ead4
1180 changed files with 115132 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
cc.Class({
extends: cc.Component,
properties: {},
start: function () {},
onShowImg_bendi: function (e) {
this.node.getComponent(cc.Sprite).spriteFrame = null;
cc.loader.loadRes(e, function (e, o) {
e || (this.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}.bind(this));
},
onShowImg_server: function (e) {
this.node.getComponent(cc.Sprite).spriteFrame = null;
cc.loader.load(e, function (e, o) {
e || (this.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o));
}.bind(this));
}
});