Fix: typing record (incompleted)
This commit is contained in:
@@ -85,6 +85,10 @@ RealtimeStageTimer.prototype.sendElapsedTime = function() {
|
||||
this.onTimeUpdate(timeLeft);
|
||||
}
|
||||
|
||||
RealtimeStageTimer.prototype.getElapsedTime = function() {
|
||||
return this.elapsedTime;
|
||||
}
|
||||
|
||||
RealtimeStageTimer.prototype.removeTimer = function() {
|
||||
game.time.events.remove(this.timerEvent);
|
||||
if(this.timerEvent)
|
||||
|
||||
@@ -51,7 +51,7 @@ StringUtil.toKoreanAlphabets = function(text) {
|
||||
return chars;
|
||||
};
|
||||
|
||||
StringUtil.getUnicodeAlphabetCount = function(text) {
|
||||
StringUtil.getUnicodeKoreanAlphabetCount = function(text) {
|
||||
var chars = StringUtil.toKoreanAlphabets(text);
|
||||
// console.log('char : ' + chars);
|
||||
|
||||
@@ -194,9 +194,9 @@ StringUtil.getUnicodeAlphabetCount = function(text) {
|
||||
var textLen = text.length
|
||||
for(var i = 0; i < textLen; i++) {
|
||||
if(StringUtil.isKoreanAlphabet(text[i]))
|
||||
count += 2;
|
||||
count += StringUtil.getUnicodeKoreanAlphabetCount(text[i]);
|
||||
else
|
||||
count++
|
||||
count++;
|
||||
}
|
||||
|
||||
return count;
|
||||
|
||||
Reference in New Issue
Block a user