Adventure mode colouring now controlled by a CSS class

So that we can just toggle the class instead of having aiserver.py send
back the entire story.
This commit is contained in:
Gnome Ann
2021-08-26 01:06:57 -04:00
parent 27c7baab92
commit 8fd8612cca
3 changed files with 10 additions and 8 deletions

View File

@@ -615,6 +615,11 @@ function setmodevisibility(state) {
function setadventure(state) {
adventure = state;
if(state) {
game_text.addClass("adventure");
} else {
game_text.removeClass("adventure");
}
if(!memorymode){
setmodevisibility(state);
}