Interface Helper

版本 v1.1.0·更新於 2025-10-18

A library mod that exposes more data in Interface functions.

模組介紹 作者原文

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

  • Download interface_helper.h from the example folder in this repo.
  • Place that header in your mod's src folder.
  • Add #include "interface_helper.h" to the top of your source file.
  • 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.
  • 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.

Dev Recommendations

  • The library contains some "extra variables" that are unneeded for vanilla functionality but should be updated if your mod changes something they relate to. These variables are all stored in extra_vars.c.
  • As an example, if you move the A or B button positions, you should also change the m(A/B)ItemEquipPosition(X/Y) variables.
  • If your mod completely disables a specific UI element, you shouldn't just rely on its alpha being set to 0 or its position being moved off screen. You should use the available...Enabled variable to completely disable the code (and any callbacks) being run.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

檔案與校驗

檔案名稱
Interface_Helper-1.1.0.zip
檔案大小
449.1 KiB