Added option to show green eye in pair list.

This commit is contained in:
cake
2025-12-06 05:35:27 +01:00
parent b444782b76
commit 1cb326070b
5 changed files with 30 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
using Dalamud.Bindings.ImGui;
using Dalamud.Game.Text;
using Dalamud.Game.ClientState.Objects.Enums;
using Dalamud.Game.Text;
using Dalamud.Interface;
using Dalamud.Interface.Colors;
using Dalamud.Interface.Utility;
@@ -19,6 +19,7 @@ using LightlessSync.PlayerData.Pairs;
using LightlessSync.Services;
using LightlessSync.Services.ActorTracking;
using LightlessSync.Services.Mediator;
using LightlessSync.Services.PairProcessing;
using LightlessSync.Services.ServerConfiguration;
using LightlessSync.UI.Services;
using LightlessSync.UI.Style;
@@ -38,7 +39,7 @@ using System.Net.Http.Json;
using System.Numerics;
using System.Text;
using System.Text.Json;
using LightlessSync.Services.PairProcessing;
using static Penumbra.GameData.Files.ShpkFile;
namespace LightlessSync.UI;
@@ -1712,7 +1713,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
var groupedSyncshells = _configService.Current.ShowGroupedSyncshellsInAll;
var groupInVisible = _configService.Current.ShowSyncshellUsersInVisible;
var syncshellOfflineSeparate = _configService.Current.ShowSyncshellOfflineUsersSeparately;
var greenVisiblePair = _configService.Current.ShowVisiblePairsGreenEye;
using (var behaviorTree = BeginGeneralTree("Behavior", UIColors.Get("LightlessPurple")))
{
@@ -2205,13 +2206,19 @@ public class SettingsUi : WindowMediatorSubscriberBase
_uiShared.DrawHelpText("If you set a note for a player it will be shown instead of the player name");
if (!_configService.Current.ShowCharacterNameInsteadOfNotesForVisible) ImGui.EndDisabled();
ImGui.Unindent();
if (ImGui.Checkbox("Set visible pairs as focus targets when clicking the eye", ref useFocusTarget))
{
_configService.Current.UseFocusTarget = useFocusTarget;
_configService.Save();
}
if (ImGui.Checkbox("Set visible pairs icon to an green color", ref greenVisiblePair))
{
_configService.Current.ShowVisiblePairsGreenEye = greenVisiblePair;
_configService.Save();
}
UiSharedService.ColoredSeparator(UIColors.Get("LightlessPurple"), 1.5f);
ImGui.TreePop();
pairListTree.MarkContentEnd();