你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/491983-idlepixel-plugin-paneller,源站連結 點此以跳轉

IdlePixel+ Plugin Paneller

Library which creates a modal for opening plugin panels.

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.org.cn/scripts/491983/1368960/IdlePixel%2B%20Plugin%20Paneller.js

作者
Lux-Ferre
版本
1.1.0
创建于
2024-04-08
更新于
2024-04-30
大小
4.3 KB
许可证
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)