Merge pull request #389 from hydroflame/red-save

Save Game is red when autosave is disabled.
This commit is contained in:
danielyxie 2018-07-25 14:57:59 -05:00 committed by GitHub
commit ab0f7ea4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -570,6 +570,16 @@ let Engine = {
overviewText += "<br>Int: " + (Player.intelligence).toLocaleString();
}
document.getElementById("character-overview-text").innerHTML = overviewText.replace( / /g, "&nbsp;");
const save = document.getElementById("character-overview-save-button");
const flashClass = "flashing-button";
if(!Settings.AutosaveInterval) {
save.classList.add(flashClass);
} else {
save.classList.remove(flashClass);
}
},
/* Display character info */