JM_KA/assets/Script/Engine/Component/Label/LabelOtherSetting.ts
2022-08-26 16:48:17 +08:00

14 lines
387 B
TypeScript

const {ccclass, property} = cc._decorator;
@ccclass
export class LabelOtherSetting extends cc.Component {
@property
public bold:boolean = false;
@property
public underline:boolean = false;
onEnable(){
(<any>this.getComponent(cc.Label))._enableBold(this.bold);
(<any>this.getComponent(cc.Label))._enableUnderline(this.underline);
}
}