mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
Add custom hud texture example
This commit is contained in:
parent
ad6642a4bd
commit
3fe3b4ca19
4 changed files with 8 additions and 0 deletions
7
docs/lua/examples/custom-hud-texture/main.lua
Normal file
7
docs/lua/examples/custom-hud-texture/main.lua
Normal 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)
|
BIN
docs/lua/examples/custom-hud-texture/textures/test.png
Normal file
BIN
docs/lua/examples/custom-hud-texture/textures/test.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 990 B |
BIN
docs/lua/examples/custom-hud-texture/textures/test.tex
Normal file
BIN
docs/lua/examples/custom-hud-texture/textures/test.tex
Normal file
Binary file not shown.
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue