Signed-off-by: szrpf <27185709@qq.com>

This commit is contained in:
szrpf
2023-04-23 18:35:39 +08:00
parent a48fa6b879
commit 484bf7c1b9
52 changed files with 171 additions and 173 deletions

View File

@@ -99,8 +99,7 @@ export default class DataBoard extends cc.Component {
this._customLabelString = value;
this.customLabelStringSplit = value
.replace(/,/g, '_~_').replace(/:/g, '_!_').replace(/ /g, '_@_')
.replace(/([^_])\n/g, '$1_\n').replace(/([^_])\n/g, '$1_\n').replace(/\n([^_])/g, '\n_$1')
.split('_');
.replace(/(?<!_)\n/g, '_\n').replace(/\n(?!_)/g, '\n_').split('_');
}
@property
private _customLabelOffset: cc.Vec2 = cc.v2(0, 100);