Skip to content

Add color and displayHP to HOOK_ON_NAMETAGS_RENDER, colored nametags and more#1082

Open
ProfeJavix wants to merge 2 commits intocoop-deluxe:devfrom
ProfeJavix:hook-on-nametags-color
Open

Add color and displayHP to HOOK_ON_NAMETAGS_RENDER, colored nametags and more#1082
ProfeJavix wants to merge 2 commits intocoop-deluxe:devfrom
ProfeJavix:hook-on-nametags-color

Conversation

@ProfeJavix
Copy link

@ProfeJavix ProfeJavix commented Jan 12, 2026

  • Add colored nametags based on name's hex color codes.
  • Add the fields "color" and "displayHP" to the return value at HOOK_ON_NAMETAGS_RENDER's callback.
  • Now the host option "Nametags" it's a selection box instead of a checkbox.
  • Changed gServerSettings.nametags type to the enum NametagsType, allowing three options.
  • Move "djui_hud_print_outlined_text_interpolated" to djui_hud_utils.c and added "djui_hud_print_outlined_text".
  • Expose "djui_hud_print_outlined_text" and "djui_hud_print_outlined_text_interpolated" to Lua.
  • Added/updated related documentation.

@Beckowl
Copy link
Contributor

Beckowl commented Jan 13, 2026

could you add an option to hide the power meter? :P

@ProfeJavix
Copy link
Author

could you add an option to hide the power meter? :P

Isn't it toggled with the '/nametags show-health' command?

@Beckowl
Copy link
Contributor

Beckowl commented Jan 13, 2026

I mean via code, HOOK_ON_NAMETAGS_RENDER can hide usernames but not power meters

@ProfeJavix
Copy link
Author

I mean via code, HOOK_ON_NAMETAGS_RENDER can hide usernames but not power meters

Oh gotcha! Yeah, it's a good idea

@ProfeJavix ProfeJavix changed the title Add color to HOOK_ON_NAMETAGS_RENDER, colored nametags and more Add color and displayHP to HOOK_ON_NAMETAGS_RENDER, colored nametags and more Jan 13, 2026
@ProfeJavix ProfeJavix force-pushed the hook-on-nametags-color branch from 1e26dcf to 3adde87 Compare January 13, 2026 21:59
- Add colored nametags based on name's hex color codes.
- Add the third field "color" to the return value at HOOK_ON_NAMETAGS_RENDER's callback.
- Now the host option "Nametags" it's a selection box instead of a checkbox.
- Changed gServerSettings.nametags type to the enum NametagsType, allowing three options.
- Move "djui_hud_print_outlined_text_interpolated" to djui_hud_utils.c and added "djui_hud_print_outlined_text".
- Expose "djui_hud_print_outlined_text" and "djui_hud_print_outlined_text_interpolated" to Lua.
- Added/updated related documentation.
@ProfeJavix ProfeJavix changed the base branch from main to dev January 15, 2026 19:45
@ProfeJavix ProfeJavix force-pushed the hook-on-nametags-color branch 2 times, most recently from 4319714 to bc6e55c Compare January 15, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants