|
@@ -23,8 +23,8 @@ export default class Setting extends cc.Component {
|
|
|
img_effect: cc.Sprite = null;
|
|
img_effect: cc.Sprite = null;
|
|
|
@property({ type: cc.Label, displayName: "版本号" })
|
|
@property({ type: cc.Label, displayName: "版本号" })
|
|
|
lbl_version: cc.Label = null;
|
|
lbl_version: cc.Label = null;
|
|
|
- @property({ type: cc.Label, displayName: "成就名称" })
|
|
|
|
|
- lbl_achieve: cc.Label = null;
|
|
|
|
|
|
|
+ @property({ type: cc.Sprite, displayName: "成就名称" })
|
|
|
|
|
+ sp_achieve: cc.Sprite = null;
|
|
|
@property({ type: cc.Label, displayName: '等级' })
|
|
@property({ type: cc.Label, displayName: '等级' })
|
|
|
lbl_lv: cc.Label = null;
|
|
lbl_lv: cc.Label = null;
|
|
|
@property({ type: cc.Label, displayName: '红包币' })
|
|
@property({ type: cc.Label, displayName: '红包币' })
|
|
@@ -58,6 +58,7 @@ export default class Setting extends cc.Component {
|
|
|
this.img_music.spriteFrame = await mk.loader.load(music, cc.SpriteFrame);
|
|
this.img_music.spriteFrame = await mk.loader.load(music, cc.SpriteFrame);
|
|
|
this.img_effect.spriteFrame = await mk.loader.load(effect, cc.SpriteFrame);
|
|
this.img_effect.spriteFrame = await mk.loader.load(effect, cc.SpriteFrame);
|
|
|
|
|
|
|
|
|
|
+ this.sp_achieve.spriteFrame = await mk.loader.load('module/gradeReward/texture/name' + gData.gameData.gameData.farmGradeName, cc.SpriteFrame);
|
|
|
console.log("=== gData.wechatData.avatar", gData.wechatData.avatar);
|
|
console.log("=== gData.wechatData.avatar", gData.wechatData.avatar);
|
|
|
let result = await mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null);
|
|
let result = await mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null);
|
|
|
this.img_head.spriteFrame = new cc.SpriteFrame(result);
|
|
this.img_head.spriteFrame = new cc.SpriteFrame(result);
|