diff --git a/docs/lua/examples/custom-hud-texture/main.lua b/docs/lua/examples/custom-hud-texture/main.lua new file mode 100644 index 00000000..13ded5d2 --- /dev/null +++ b/docs/lua/examples/custom-hud-texture/main.lua @@ -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) \ No newline at end of file diff --git a/docs/lua/examples/custom-hud-texture/textures/test.png b/docs/lua/examples/custom-hud-texture/textures/test.png new file mode 100644 index 00000000..9302f8d3 Binary files /dev/null and b/docs/lua/examples/custom-hud-texture/textures/test.png differ diff --git a/docs/lua/examples/custom-hud-texture/textures/test.tex b/docs/lua/examples/custom-hud-texture/textures/test.tex new file mode 100644 index 00000000..afaef79b Binary files /dev/null and b/docs/lua/examples/custom-hud-texture/textures/test.tex differ diff --git a/docs/lua/lua.md b/docs/lua/lua.md index ce8fbe5b..3bf80ae0 100644 --- a/docs/lua/lua.md +++ b/docs/lua/lua.md @@ -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)