Definable ModMenu

Definable is a modular ModMenu for Drawaria.Online

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
CubusMaximus
日安装量
0
总安装量
68
评分
0 0 0
版本
0.2.6
创建于
2024-12-22
更新于
2025-06-28
大小
39.7 KB
许可证
GNU GPLv3
适用于

Definable - A modular ModMenu for Drawaria.Online

Definable, as said in the Title, is aimed to be a modular ModMenu for the Online Game Drawaria.Online. It also is the successor of Cubic Engine. As much as I liked that project, it got a little "overwhelming" since I wrote a lot of gibberish back then... ;P

How it works

After the site has loaded a Custom Event will be dispatched on the window Object. The detail attribute of the Custom Event will contain a reference to the Main Component and a reference to the Base/Core Class to allow for easy access to create new SubModules. This Event will most likely be dispatched after approximately 1 second depending on how fast you internet connection is. After Definable has finished initializing it will automatically load all available SubModules.

SubModules

A SubModule can be easily created. For this download the default source code. The Custom Event at initialization will contain a reference to the Main Object and a reference to the Base/Core Class to be used with the extends keyword. For Example:

window.addEventListener("definable:init",function(event) {
  const core = event.detail.core;
  class BigBrush extends core {
    constructor() {
      super("BigBrush","pencil");
    }
    /*
    ...
    */
  }
})

Optionally you can also just invoke the core Class directly by instead doing:

window.addEventListener("definable:init",function(event) {
  const core = event.detail.core;
  const BigBrush = new core("BigBrush","pencil");
})

See more