mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-23 06:32:36 +00:00
feat/highlight the owner of hovered naval units (#4610)
Resolves #4445 ## Description: Changes HoverHighlightController.ts to check for naval units if the mouse is not currently hovering over land. It then highlights the owner of the closest naval unit within 50px of the mouse. The activation radius feels a little to large right now, but it is consistent with the PlayerInfoOverlay functionality. Some input would be appreciated It is also currently disabled by default, not sure if this should be the case. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory ## Please put your Discord username so you can be contacted if a bug or regression is found: unne27 https://github.com/user-attachments/assets/7b8262e5-a097-44c8-b2ae-1ac336466623 <img width="534" height="901" alt="image" src="https://github.com/user-attachments/assets/50e9e126-08a6-4a24-9c26-cd4099a2603e" /> --------- Co-authored-by: unne27 <>
This commit is contained in:
@@ -636,6 +636,8 @@
|
||||
"name_cull_desc": "Hide names smaller than this size",
|
||||
"name_cull_label": "Minimum name size",
|
||||
"name_scale_label": "Name Scale",
|
||||
"naval_hover_highlight_desc": "Highlight the owner of naval units when hovering over them.",
|
||||
"naval_hover_highlight_label": "Naval Hover Highlight",
|
||||
"nuke_color_desc": "Color of the fallout tint left on territory after a nuke.",
|
||||
"nuke_color_label": "Nuke fallout color",
|
||||
"ocean_color_desc": "Base color of ocean.",
|
||||
|
||||
Reference in New Issue
Block a user