Library which creates a modal for opening plugin panels.
目前為
此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/491983/1356622/IdlePixel%2B%20Plugin%20Paneller.js
// ==UserScript==
// @name IdlePixel+ Plugin Paneller
// @namespace lbtechnology.info
// @version 1.0.0
// @description Library which creates a modal for opening plugin panels.
// @author Lux-Ferre
// @license MIT
// @match *://idle-pixel.com/login/play*
// @grant none
// ==/UserScript==
(function() {
if(window.Paneller) {
// already loaded
return;
}
class Paneller {
constructor() {
this.panel_map = {}
}
registerPanel(panelName, displayName){
this.panel_map[panelName] = {
name: panelName,
display: displayName
}
}
createModal(){}
populateModal(){}
}
// Add to window and init
window.Paneller = new Paneller();
})();