|
@@ -9,9 +9,13 @@ cc.Class({
|
|
properties: {
|
|
properties: {
|
|
|
|
|
|
bgSpriteFrames: [cc.SpriteFrame],
|
|
bgSpriteFrames: [cc.SpriteFrame],
|
|
|
|
+
|
|
|
|
+ effectSpriteFrames: [cc.SpriteFrame],
|
|
|
|
|
|
headSprite: cc.Sprite,
|
|
headSprite: cc.Sprite,
|
|
|
|
|
|
|
|
+ effectSprite: cc.Sprite,
|
|
|
|
+
|
|
nickRichText: cc.RichText,
|
|
nickRichText: cc.RichText,
|
|
|
|
|
|
jobLevelLabel: cc.Label,
|
|
jobLevelLabel: cc.Label,
|
|
@@ -46,6 +50,7 @@ cc.Class({
|
|
set: function (value) {
|
|
set: function (value) {
|
|
this._flag = value;
|
|
this._flag = value;
|
|
this._bgSprite.spriteFrame = this.bgSpriteFrames[value];
|
|
this._bgSprite.spriteFrame = this.bgSpriteFrames[value];
|
|
|
|
+ this.effectSprite.spriteFrame = this.effectSpriteFrames[value];
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|