From 65dea18f5f8a8feaf4d85544ae339cf3b1f57ee5 Mon Sep 17 00:00:00 2001 From: cake Date: Fri, 26 Dec 2025 20:43:09 +0000 Subject: [PATCH] Added count to lightfinder label (#110) [[https://lightless.media/u/3J6Um2OI.png](url)](https://lightless.media/u/3J6Um2OI.png) Co-authored-by: cake Reviewed-on: https://git.lightless-sync.org/Lightless-Sync/LightlessClient/pulls/110 Reviewed-by: defnotken --- LightlessSync/UI/TopTabMenu.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/LightlessSync/UI/TopTabMenu.cs b/LightlessSync/UI/TopTabMenu.cs index 46a06c4..92215fe 100644 --- a/LightlessSync/UI/TopTabMenu.cs +++ b/LightlessSync/UI/TopTabMenu.cs @@ -781,7 +781,8 @@ public class TopTabMenu { var buttonX = (availableWidth - (spacingX)) / 2f; - if (_uiSharedService.IconTextButton(FontAwesomeIcon.PersonCirclePlus, "Lightfinder", buttonX, center: true)) + var lightFinderLabel = GetLightfinderFinderLabel(); + if (_uiSharedService.IconTextButton(FontAwesomeIcon.PersonCirclePlus, lightFinderLabel, buttonX, center: true)) { _lightlessMediator.Publish(new UiToggleMessage(typeof(LightFinderUI))); } @@ -795,6 +796,20 @@ public class TopTabMenu } } + private string GetLightfinderFinderLabel() + { + string label = "Lightfinder"; + + if (_lightFinderService.IsBroadcasting) + { + var hashExclude = _dalamudUtilService.GetCID().ToString().GetHash256(); + var nearbyCount = _lightFinderScannerService.GetActiveBroadcasts(hashExclude).Count; + return $"{label} ({nearbyCount})"; + } + + return label; + } + private string GetSyncshellFinderLabel() { if (!_lightFinderService.IsBroadcasting)