Greasy Fork

Greasy Fork is available in English.

IdlePixel+ Plugin Paneller

Library which creates a modal for opening plugin panels.

当前为 2024-04-08 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/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();

})();