IdlePixel+ Plugin Paneller

Library which creates a modal for opening plugin panels.

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/491983/1368960/IdlePixel%2B%20Plugin%20Paneller.js

Autor
Lux-Ferre
Version
1.1.0
Erstellt am
08.04.2024
Letzte Aktualisierung
30.04.2024
Lizenz
MIT

Idle-Pixel Plugin Paneller

Creates a modal populated with buttons to open panels.

After requiring the library, just use the following method call within onLogin()

Paneller.registerPanel(panelName, "Display Name", function/method)

function is an optional parameter defaulting to the standard panel opening. When a function is given, it will be called when the button is clicked in the modal.

Examples:

Paneller.registerPanel(myScriptPanel, "My Script - Panel"

Paneller.registerPanel(myScriptModal, "My Script - Modal", IdlePixelPlus.plugins.myscript.openModal)