Space will now work to progress mission along with mouse click.
Implemented size tag from utage. Translations updated.
This commit is contained in:
parent
4e982cdd3d
commit
6734df9dec
5 changed files with 199 additions and 178 deletions
13
Js/Common.js
13
Js/Common.js
|
@ -210,6 +210,19 @@ class commonFunctions {
|
|||
text = text.replace(m, `<ruby>${innerText}<rt>${rText}</rt></ruby>`);
|
||||
}
|
||||
}
|
||||
//convert size tags to spans with font size
|
||||
let sizeMatches = text.match(/<size=.*?>/g);
|
||||
if(sizeMatches) {
|
||||
for(let i = 0; i < sizeMatches.length; ++i) {
|
||||
let m = sizeMatches[i];
|
||||
let size = m.match(/\d{1,3}/);
|
||||
if(size[0]) {
|
||||
let s = Number(size[0]) - 1;
|
||||
text = text.replace(m, `<span style="font-size:${s}px;">`);
|
||||
}
|
||||
}
|
||||
}
|
||||
text = text.replace('</size>', '</span>')
|
||||
return text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue