skipdlg
This commit is contained in:
@@ -16,6 +16,11 @@ var voice;
|
|||||||
//playsound
|
//playsound
|
||||||
//save file in local storage
|
//save file in local storage
|
||||||
|
|
||||||
|
window.addEventListener('contextmenu', (event) => {
|
||||||
|
event.preventDefault()
|
||||||
|
speed = 0
|
||||||
|
})
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
fetch("text_horror/dialogue.json") //Load json file here
|
fetch("text_horror/dialogue.json") //Load json file here
|
||||||
.then(Response => Response.json())
|
.then(Response => Response.json())
|
||||||
@@ -58,6 +63,7 @@ function typeWriter() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function nextDlg(dlgPointerIncrease = true) {
|
function nextDlg(dlgPointerIncrease = true) {
|
||||||
|
speed = 50
|
||||||
if (document.getElementById("dlg-text").innerHTML.length == dlgLines[dlgPointer].length && allowNextDlg || skipDlg) {
|
if (document.getElementById("dlg-text").innerHTML.length == dlgLines[dlgPointer].length && allowNextDlg || skipDlg) {
|
||||||
skipDlg = false;
|
skipDlg = false;
|
||||||
if (dlgPointerIncrease)
|
if (dlgPointerIncrease)
|
||||||
|
Reference in New Issue
Block a user