mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 09:14:09 +00:00
Add white glow behind hovered player's name
The hovered player (tile owner under the cursor, already tracked via uHighlightOwnerID for cull bypass) now gets a soft white glow behind their name. The glow is derived from the MSDF distance field: a white band past the outline with quadratic falloff, composited behind the glyph and clamped to the SDF margin so it never clips at quad edges. Glow size and strength are tunable via hoverGlowWidth/hoverGlowAlpha in render-settings.json, exposed as sliders in the graphics settings modal (persisted as graphics overrides) and in the debug GUI. Includes schema and apply tests for the new override fields, covering the 0 edge case (0 disables the glow, not "unset").
This commit is contained in:
@@ -944,6 +944,10 @@
|
||||
"name_cull_desc": "Hide names smaller than this size",
|
||||
"hover_fade_label": "Name opacity under cursor",
|
||||
"hover_fade_desc": "How visible names are while your cursor is over them (1 to disable fading)",
|
||||
"hover_glow_width_label": "Hover glow size",
|
||||
"hover_glow_width_desc": "How far the white glow extends behind the hovered player's name",
|
||||
"hover_glow_alpha_label": "Hover glow strength",
|
||||
"hover_glow_alpha_desc": "How bright the white glow behind the hovered player's name is (0 to disable)",
|
||||
"colored_names_label": "Name color",
|
||||
"colored_names_desc": "Show player names in their player color or in black",
|
||||
"colored": "Colored",
|
||||
|
||||
Reference in New Issue
Block a user