The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

219 ratings
HUD API
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.506 MB
10 Apr, 2020 @ 5:27am
26 Aug @ 8:49am
33 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
HUD API

In 1 collection by ☢ Nato Potato ☢
NatoPotato's Binding of Isaac Mods
110 items
Description
Using this mod you can create and use your own custom HUD layouts.

You can go to the Mod Config Menu to change the HUD, or you can press H at any time during a game to cycle through all the available HUDs.
(hotkey can be changed in the config menu)

In the config menu you can also set which HUD should be applied by default after starting a game.

Some example HUDs are included:
FakeDefault - Looks like the regular HUD, why would you want this? Mods can't render sprites over the regular HUD, they can if you use this.
Flash - Nostalgia. (assets shamelessly stolen from the Reflash mod, check it out if you're a fan of the original game)
TextOnly - Learn to read.
UpsideDown - For all the fellow Australian players out there.
Jittery - Clearly this HUD has had way too much coffee.
SPEEEEEEN - Because why not?


The mod has global functions that allow you to make and manage your own HUDs, basically you need some sprite anm files and a table that lists them, along with fields for position, orientation, etc.
The sprite table can also include functions that should be run while rendering the sprite, really helpful if you want to display dynamic data like stats or health or your own custom variables.
You can check the lua files for more info, it can get a bit complex but it's a lot easier than trying to implement a custom HUD from scratch.


Using the Mod Config Menu you can also enable a few extra stats (this should work for all up-to-date HUDs without needing them to include the extra stats in their code), currently there is a check for Planetarium room chance (repentance only), a counter for blue flies, one for blue spiders, enemies killed, damage taken, rooms explored, pills used, cards used and a counter for deaths which carries over between runs (and can be reset in the config menu).



Mods that render stuff on screen can also check the current HUD if they want to reposition them to fit different HUDs, all HUDs aside from the regular default one add the 'No HUD' seed effect so if you don't want to add support for different HUDs you can just only render stuff if the nohud seed is not active.
(it's also just good practice to do that as it will allow people to hide everything for good screenshots and it prevents sprites from being rendered over the mod config menu)


I didn't mess with maps and inventory stuff since those have already been done by other mods, so if you want visible minimap and inventory for custom HUDs subscribe to MiniMAPI and reHUD.


HUGE thanks to Temmie for the Deal API that can accurately calculate your angel chance. (and letting me re-purpose the code for this mod)
Now the HUDs should all have devil and angel chances, you can also use the config menu to switch the implementation of the chances from the weird 'chance for a special room & chance for that room to be angel' to the ACTUAL odds of each room appearing.
Popular Discussions View All (1)
6
19 May, 2021 @ 2:00pm
Repentance Updates
☢ Nato Potato ☢
32 Comments
Grym 18 Mar @ 9:55pm 
@Fanrail do you have Immortal Hearts by Team Compliance on? I went through my whole mod list and found that that mod was the issue
you 17 Sep, 2023 @ 8:06am 
Mod wiped my health off the face of the earth
it's gone, what do I do
Fanrail 20 Aug, 2023 @ 11:52am 
Also, the game lags A LOT when the hud with this mod is not Default or None.
Fanrail 6 Aug, 2023 @ 8:53am 
This mod makes the floor name appear as just "I" instead of, for instance, "Burning Basement I", if the hud is other than Default (apart from when it's None, in which case nothing of the hud is seen, obviously).
river 9 May, 2023 @ 10:47pm 
this mod lags my game when i kill an enemy
Teriyakiliver 27 Feb, 2023 @ 6:14pm 
I have no idea why but it only works when i set it in main.lua Thx for the help tho.
☢ Nato Potato ☢  [author] 27 Feb, 2023 @ 5:58pm 
just did a check and it remembered which hud I had set as the default and applied it when I reopened the game, so it's not failing to load settings, maybe it's being reset while you're playing somehow? or maybe it's something on your end.

next time you're playing the game could you open the config menu (F10) go to hud api options and check that the default hud option (second one from top) is set to something other than 'default'? if it doesn't load whatever hud you set are you able to check the debug console?
Teriyakiliver 27 Feb, 2023 @ 2:59pm 
hey there, im also having problems keeping a hud active on repentance, can you offer any help?
Rocketarm 7 Feb, 2023 @ 2:55am 
I'm having trouble keeping one of the premade HUDs active on startup
Jakyle 27 Jan, 2023 @ 4:25pm 
Hello, I play with Fiend Folio and Repentance plus and I noticed that the hearts in the HUD do not render with this mod. from what I understand, they both use the "Custom Health API". Is there any plans to also support the Custom Health API or would the mod authors have to write something to support the HUD Api, Thanks in advance.