[add] Engine
This commit is contained in:
14
assets/Script/Engine/Component/Label/LabelOtherSetting.ts
Normal file
14
assets/Script/Engine/Component/Label/LabelOtherSetting.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user