Userlist collapse and cinema mode now state now persistant.

This commit is contained in:
rainbow napkin 2025-09-06 19:08:10 -04:00
parent 770bdc4794
commit 9650caeed0
101 changed files with 164 additions and 112 deletions

View file

@ -277,6 +277,26 @@ class channel{
//Set Chat Box Width minimum while Locked to Aspect-Ratio
this.chatBox.chatWidthMinimum = value / 100;
return;
case 'userlistHidden':
//If the userlist class isn't loaded in yet
if(this.userList == null){
//We're fuckin' done here
return;
}
//Pass value down to UI toggle, making sure to allow for string conversion
this.userList.toggleUI(!(value == true || value == "true"));
return;
case 'cinemaMode':
//If the userlist class isn't loaded in yet
if(this.player == null){
//We're fuckin' done here
return;
}
//Pass value down to UI toggle, making sure to allow for string conversion
this.player.toggleCinemaMode(value == true || value == "true");
return;
}
}
@ -289,7 +309,9 @@ class channel{
["syncTolerance",0.4],
["liveSyncTolerance", 2],
["syncDelta", 6],
["chatWidthMin", 20]
["chatWidthMin", 20],
["userlistHidden", false],
["cinemaMode", false]
]);
}