You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/lua/guides/hooks.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ The lua functions sent to `hook_event()` will be automatically called by SM64 wh
138
138
| HOOK_ON_ATTACK_OBJECT | Called when a player attacks an object. May be double-fired in some cases, you'll need to write special code for this |[MarioState](../structs.md#MarioState) attacker, [Object](../structs.md#Object) victim, `integer` interactionId |
139
139
| HOOK_ON_LANGUAGE_CHANGED | Called when the language is changed |`string` language |
140
140
| HOOK_ON_MODS_LOADED | Called directly after every mod file is loaded in by smlua | None |
141
-
| HOOK_ON_NAMETAGS_RENDER | Called when nametags are rendered. Return a table with `name`, `pos`and/or `color` to override the nametag text, positionand/or color. |`integer` playerIndex, `[Vec3f](../structs.md#vec3f)` pos, `[Color](../structs.md#color)` color |
141
+
| HOOK_ON_NAMETAGS_RENDER | Called when nametags are rendered. Return a table with `name`, `pos`, `color`and/or `displayHP` to override the nametag text, position, color and/or power meter display. |`integer` playerIndex, `[Vec3f](../structs.md#vec3f)` pos, `[Color](../structs.md#color)` color, `boolean` displayHP|
142
142
| HOOK_ON_DJUI_THEME_CHANGED | Called when the DJUI theme is changed. Run `djui_menu_get_theme()` to get the new theme. | None |
143
143
| HOOK_ON_GEO_PROCESS | Called when a GeoLayout is processed **Note:** You must set the `hookProcess` field of the graph node to a non-zero value |[GraphNode](../structs.md#GraphNode) graphNode, `integer` matStackIndex |
144
144
| HOOK_BEFORE_GEO_PROCESS | Called before a GeoLayout is processed **Note:** You must set the `hookProcess` field of the graph node to a non-zero value |[GraphNode](../structs.md#GraphNode) graphNode, `integer` matStackIndex |
0 commit comments