Commit 0fcd8350 authored by 李帅's avatar 李帅

+1

parent 6caca114
/*
* @Author: ls
* @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-06-14 17:32:24
* @LastEditTime: 2022-06-14 17:51:57
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
......@@ -330,7 +330,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.scheduleOnce(() => {
this.resetRecord();
});
}, 0.1);
});
}
......
/*
* @Author: ls
* @Date: 2022-05-21 18:06:20
* @LastEditTime: 2022-06-08 21:39:12
* @LastEditTime: 2022-06-14 17:52:50
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\script\simpleLabel.ts
......@@ -166,9 +166,10 @@ export default class simpleLabel extends cc.Component {
}
let temp = element;
if (element.indexOf(',') !== -1 || element.indexOf('.') !== -1 || element.indexOf('!') !== -1 || element.indexOf('?') !== -1) {
temp = temp.substring(0, temp.length - 1);
}
// TODO 处理标点符号
// if (element.indexOf(',') !== -1 || element.indexOf('.') !== -1 || element.indexOf('!') !== -1 || element.indexOf('?') !== -1) {
// temp = temp.substring(0, temp.length - 1);
// }
if (temp === str) {
let x = this.getLetterWidth(this.label, tempString);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment