[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);
|
||||
}
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "8444b16e-19e2-45f3-b155-0bbde521118f",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
Reference in New Issue
Block a user