MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / toggleAlwaysOnTop

Method toggleAlwaysOnTop

lib/modAssist_window_lib.js:442–446  ·  view source on GitHub ↗

* Toggle window always on top status (or force true) * @param {string} name window * @param {boolean} force force on top

(name, force = false)

Source from the content-addressed store, hash-verified

440 * @param {boolean} force force on top
441 */
442 toggleAlwaysOnTop(name, force = false) {
443 if ( this.isValid(name) ) {
444 this.win[name].setAlwaysOnTop(force ? true : !this.win[name].isAlwaysOnTop(), 'screen-saver')
445 }
446 }
447
448 /**
449 * Check if window is visible

Callers 2

modAssist_main.jsFile · 0.80
toggleMiniWindowFunction · 0.80

Calls 2

isValidMethod · 0.80
isAlwaysOnTopMethod · 0.80

Tested by

no test coverage detected