tomtee-Interface_Helper icon

Interface Helper

A library mod that exposes more data in Interface functions.

Last updated 2 weeks ago
Total downloads 67
Total rating 1 
Categories Libraries
Dependency string tomtee-Interface_Helper-1.0.0
Dependants 0 other packages depend on this package

README

Majora's Mask: Recompiled Interface Helper

This is a library mod that exposes more data inside interface functions so mods can change interface drawing functionality in a simpler and more precise manner.

Usage

  1. Download interface_helper.h from the example folder in this repo.
  2. Place that header in your mod's src folder.
  3. Add #include "interface_helper.h" to the top of your source file.
  4. Scan the function patches in this repo and find the variables you want to change and then use their respective DECLARE and REGISTER macros in your source file.
    • The DECLARE macro must be placed outside of any scope.
    • The REGISTER macro should be ran once after the game has initalised, for example in a recomp_after_play_init callback.
  5. Modify that variable by accessing it with the declared pointer - the pointer's name will be the same as the variable but with a 'p' instead of an 'm' prefix.

Extras

The library contains some improved optional bug fixes and inconsistency corrections from Modern Controller Overhaul:

  • Items equipped to the Attack button can be slightly scaled down to actually fit the button and to be more consistent with items equipped to the C-buttons.
  • There is an option for the Attack button to no longer be disabled when empty, matching the other buttons.
  • Deku Link's empty C-buttons being disabled while other forms aren't can been fixed.
  • The green ammo bug before obtaining the magic meter can been fixed.