Definable ModMenu

Definable is a modular ModMenu for Drawaria.Online

目前為 2024-12-22 提交的版本,檢視 最新版本

作者
CubusMaximus
評價
0 0 0
版本
0.1.2
建立日期
2024-12-22
更新日期
2024-12-22
尺寸
33.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.

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. 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