Abnormal Menu

This is a JavaScript script that creates a menu for scripts.

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/462013/1164920/Abnormal%20Menu.js

作者
anonimbiri
版本
0.0.1.20230322163349
创建于
2023-03-17
更新于
2023-03-22
许可证
暂无

Abnormal Menu

Abnormal Menu is a JavaScript library for creating customizable menus. It provides various components such as buttons, switches, select menus, and file drops.

Installation

You can include Anormal Menu in your script project by adding the script header below to your Tampermonkey script file:

// @require https://greasyfork.org/scripts/462013-abnormal-menu/code/Abnormal%20Menu.js?version=1164919

Usage

To create a menu, simply call the CreateMenu function and pass in an object with the following properties:

  • title: The title of the menu.
  • startX: The x-coordinate of the starting position of the menu.
  • startY: The y-coordinate of the starting position of the menu.
  • width: The width of the menu.
  • height: The height of the menu.
  • pin: Whether or not the menu should be pinned to the screen.
var menu = new CreateMenu({
    title: "Menu Title",
    startX: 10,
    startY: 10,
    width: 600,
    height: 600,
    pin: true
});

Documentation

For more information and examples, please refer to the official documentation: Abnormal Menu Documentation

I hope this helps! Let me know if you have any other questions.