Add custom hud texture example

This commit is contained in:
MysterD 2022-05-06 22:06:35 -07:00
parent ad6642a4bd
commit 3fe3b4ca19
4 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,7 @@
function on_hud_render()
local texInfo = get_texture_info('test')
djui_hud_set_resolution(RESOLUTION_N64);
djui_hud_render_texture(texInfo, 0, 0, 1, 1)
end
hook_event(HOOK_ON_HUD_RENDER, on_hud_render)

Binary file not shown.

After

Width:  |  Height:  |  Size: 990 B

Binary file not shown.

View file

@ -58,6 +58,7 @@ All of this is a holdover from when there were only two players. It was a reason
- [Instant Clip](examples/instant-clip.lua)
- [Water Height Changer](examples/water-level.lua)
- [Custom Level](examples/custom-level)
- [Custom HUD Texture](examples/custom-hud-texture)
## Example Lua mods (large)
- [Extended Moveset](../../mods/extended-moveset.lua)