Greasy Fork is available in English.

IdlePixel+ Plugin Paneller

Library which creates a modal for opening plugin panels.

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyfork.org/scripts/491983/1368960/IdlePixel%2B%20Plugin%20Paneller.js

作者
Lux-Ferre
版本
1.1.0
建立日期
2024-04-08
更新日期
2024-04-30
授權條款
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)