mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-26 04:28:31 +00:00
Exclusive settings mode / pop-out (#399)
- In exclusive mode, the settings menu isn't minimizable or closable - It automatically opens in said mode when it finds `?ffz-settings` in the URL - When in pop-out chat, the FrankerFaceZ Control Center link will open a new window with exclusive settings mode.
This commit is contained in:
parent
2e5c99c727
commit
19c81bb049
5 changed files with 34 additions and 7 deletions
|
@ -32,6 +32,7 @@ export default class MainMenu extends Module {
|
|||
this._menu = null;
|
||||
this._visible = true;
|
||||
this._maximized = false;
|
||||
this.exclusive = false;
|
||||
|
||||
|
||||
this.settings.addUI('profiles', {
|
||||
|
@ -529,9 +530,11 @@ export default class MainMenu extends Module {
|
|||
nav_keys: settings.keys,
|
||||
|
||||
maximized: this._maximized,
|
||||
resize: e => this.toggleSize(e),
|
||||
close: e => this.toggleVisible(e),
|
||||
version: window.FrankerFaceZ.version_info
|
||||
resize: e => !this.exclusive && this.toggleSize(e),
|
||||
close: e => !this.exclusive && this.toggleVisible(e),
|
||||
version: window.FrankerFaceZ.version_info,
|
||||
|
||||
exclusive: this.exclusive
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue