JM_KA/assets/Script/Engine/Component/Label/LabelOtherSetting.ts

14 lines
387 B
TypeScript
Raw Normal View History

2022-08-26 16:48:17 +08:00
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);
}
}