If you want any custom HUD element, you can do this:
Code: Select all
local function myHUDElement(camIdx,priority,isSplit)
-- Do stuff here
end
Graphics.addHUDElement(myHUDElement)
... or, if you want to override the HUD entirely, you can do this:
Code: Select all
local function myCustomHUD(camIdx,priority,isSplit)
-- Do stuff here
end
Graphics.overrideHUD(myCustomHUD)
-- (or Graphics.overrideOverworldHUD for the overworld)
I'll send you the code for the purple coin counter through discord shortly.