sm64coopdx/docs/lua
PeachyPeach 8812fbac8b
HOOK_ALLOW_INTERACT; new HUD functions (#73)
Added new hook: HOOK_ALLOW_INTERACT:
        Called before Mario interacts with an object. Return true to allow the interaction.
        The hook signature is bool function(MarioState, Object, InteractionType)

    Added new HUD constants:
        enum HudDisplayValue:
            HUD_DISPLAY_LIVES
            HUD_DISPLAY_COINS
            HUD_DISPLAY_STARS
            HUD_DISPLAY_WEDGES
            HUD_DISPLAY_KEYS
            HUD_DISPLAY_FLAGS
            HUD_DISPLAY_TIMER
        enum HudDisplayFlags:
            HUD_DISPLAY_FLAGS_NONE
            HUD_DISPLAY_FLAGS_LIVES
            HUD_DISPLAY_FLAGS_COIN_COUNT
            HUD_DISPLAY_FLAGS_STAR_COUNT
            HUD_DISPLAY_FLAGS_CAMERA_AND_POWER
            HUD_DISPLAY_FLAGS_KEYS
            HUD_DISPLAY_FLAGS_UNKNOWN_0020
            HUD_DISPLAY_FLAGS_TIMER
            HUD_DISPLAY_FLAGS_EMPHASIZE_POWER

    Added new HUD functions:
        s32 hud_get_value(enum HudDisplayValue type)
        void hud_set_value(enum HudDisplayValue type, s32 value)
        void hud_render_power_meter(s32 health, f32 x, f32 y, f32 width, f32 height)
2022-04-30 17:33:38 -07:00
..
examples Custom level example 2022-04-15 22:01:19 -07:00
constants.md HOOK_ALLOW_INTERACT; new HUD functions (#73) 2022-04-30 17:33:38 -07:00
functions-2.md Split up functions.md into multiple pages 2022-04-22 18:41:42 -07:00
functions-3.md Changes in level_info; play_transition; dev-only warp command; bug fix for moving sounds played via lua (#69) 2022-04-26 13:48:50 -07:00
functions-4.md HOOK_ALLOW_INTERACT; new HUD functions (#73) 2022-04-30 17:33:38 -07:00
functions.md HOOK_ALLOW_INTERACT; new HUD functions (#73) 2022-04-30 17:33:38 -07:00
globals.md Added gActiveMods global to lua 2022-04-22 18:44:59 -07:00
hooks.md HOOK_ALLOW_INTERACT; new HUD functions (#73) 2022-04-30 17:33:38 -07:00
lua.md Custom level example 2022-04-15 22:01:19 -07:00
structs.md Changes in level_info; play_transition; dev-only warp command; bug fix for moving sounds played via lua (#69) 2022-04-26 13:48:50 -07:00
vs-code-setup.md Fix image 2022-03-12 21:52:38 -08:00