1234567891011121314151617181920212223242526272829303132 |
- const GameModule = require("../utils/GameModule");
- const ArtistManager = require('../utils/ArtistManager');
- cc.Class({
- extends: cc.Component,
- properties: {
- iconSprite: cc.Sprite,
- starLabel: cc.Label,
- descRichText: cc.RichText
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
- },
- initGetStar(imageId, name, desc) {
- ArtistManager.loadStarAvatarSpriteFrame(imageId, this.iconSprite);
- this.starLabel.string = name;
- this.descRichText.string = desc;
- },
- sureAction() {
- GameModule.audioMng.playClickButton();
- this.node.destroy();
- }
- // update (dt) {},
- });
|