made it only read out string
This commit is contained in:
@@ -23,9 +23,10 @@ function typeWriter() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function mouseClick() {
|
function mouseClick() {
|
||||||
if (document.getElementById("bubble").innerHTML.length == dlgLines[dlgPointer].toString().length) {
|
if (document.getElementById("bubble").innerHTML.length == dlgLines[dlgPointer].length) {
|
||||||
if (dlgPointer < dlgLines.length - 1) {
|
if (dlgPointer < dlgLines.length - 1) {
|
||||||
dlgPointer++;
|
dlgPointer++;
|
||||||
|
while (!(typeof dlgLines[dlgPointer] === 'string')) dlgPointer++;//again if it's not string
|
||||||
typeindex = 0;
|
typeindex = 0;
|
||||||
document.getElementById("bubble").innerHTML = "";
|
document.getElementById("bubble").innerHTML = "";
|
||||||
typeWriter();
|
typeWriter();
|
||||||
|
@@ -2,5 +2,6 @@
|
|||||||
"Hello welcome to TextHorror!",
|
"Hello welcome to TextHorror!",
|
||||||
"This is the second line",
|
"This is the second line",
|
||||||
1,
|
1,
|
||||||
|
2,
|
||||||
"Aand a third line"
|
"Aand a third line"
|
||||||
]
|
]
|
Reference in New Issue
Block a user