14 lines
387 B
TypeScript
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);
|
|
}
|
|
} |