Skip to content

Latest commit

 

History

History

extensions1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Mega Hack Extensions

Mega Hack Extensions let you create custom, interactive windows in Mega Hack Pro

Please note there is still stuff to be added since it's in beta, on-ready callbacks, get checkbox states, & horizontal layouts, for example.

Getting Started

Include the hackpro_ext.h file in your project, this will let you dynamically load the extension functions.

Before doing anything you need to call InitialiseHackpro() to link to Mega Hack, if the function fails then Mega Hack (hackpro.dll) isn't loaded, so don't attempt anything silly.

Now just wait until Mega Hack is ready, with HackproIsReady() (or the on-ready callback, when available). If HackproIsReady() returns false after MenuLayer::init() something very bad has probably happened.

When Mega Hack is ready you can finally create your window! Initialise it with HackproInitialiseExt() with your chosen name, add ya buttons & stuff (in reverse order!) then commit the window with HackproExtCommit(). After committing a window you can no longer add extra elements to it, you can still update the state of existing elements, however.

Loading my DLL

To have your DLL load on launch simple add your DLL to the extensions folder! (Requires v6.2.0-beta4 or higher)

Where Documentation?

Soon!