Added option to show
This commit is contained in:
@@ -80,6 +80,7 @@ public class LightlessConfig : ILightlessConfiguration
|
|||||||
public bool LightfinderLabelUseIcon { get; set; } = false;
|
public bool LightfinderLabelUseIcon { get; set; } = false;
|
||||||
public bool LightfinderLabelShowOwn { get; set; } = true;
|
public bool LightfinderLabelShowOwn { get; set; } = true;
|
||||||
public bool LightfinderLabelShowPaired { get; set; } = true;
|
public bool LightfinderLabelShowPaired { get; set; } = true;
|
||||||
|
public bool LightfinderLabelShowHidden { get; set; } = false;
|
||||||
public string LightfinderLabelIconGlyph { get; set; } = SeIconCharExtensions.ToIconString(SeIconChar.Hyadelyn);
|
public string LightfinderLabelIconGlyph { get; set; } = SeIconCharExtensions.ToIconString(SeIconChar.Hyadelyn);
|
||||||
public float LightfinderLabelScale { get; set; } = 1.0f;
|
public float LightfinderLabelScale { get; set; } = 1.0f;
|
||||||
public bool LightfinderAutoAlign { get; set; } = true;
|
public bool LightfinderAutoAlign { get; set; } = true;
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ public unsafe class NameplateHandler : IMediatorSubscriber
|
|||||||
var pNameplateIconNode = nameplateObject.MarkerIcon;
|
var pNameplateIconNode = nameplateObject.MarkerIcon;
|
||||||
var pNameplateResNode = nameplateObject.NameContainer;
|
var pNameplateResNode = nameplateObject.NameContainer;
|
||||||
var pNameplateTextNode = nameplateObject.NameText;
|
var pNameplateTextNode = nameplateObject.NameText;
|
||||||
bool IsVisible = pNameplateIconNode->AtkResNode.IsVisible() || (pNameplateResNode->IsVisible() && pNameplateTextNode->AtkResNode.IsVisible());
|
bool IsVisible = pNameplateIconNode->AtkResNode.IsVisible() || (pNameplateResNode->IsVisible() && pNameplateTextNode->AtkResNode.IsVisible()) || _configService.Current.LightfinderLabelShowHidden;
|
||||||
pNode->AtkResNode.ToggleVisibility(IsVisible);
|
pNode->AtkResNode.ToggleVisibility(IsVisible);
|
||||||
|
|
||||||
var nameContainer = nameplateObject.NameContainer;
|
var nameContainer = nameplateObject.NameContainer;
|
||||||
|
|||||||
@@ -1210,6 +1210,17 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||||||
}
|
}
|
||||||
_uiShared.DrawHelpText("Toggles paired player(s) Lightfinder label.");
|
_uiShared.DrawHelpText("Toggles paired player(s) Lightfinder label.");
|
||||||
|
|
||||||
|
var showHidden = _configService.Current.LightfinderLabelShowHidden;
|
||||||
|
if (ImGui.Checkbox("Show Lightfinder label when no nameplate(s) is visible", ref showHidden))
|
||||||
|
{
|
||||||
|
_configService.Current.LightfinderLabelShowHidden = showHidden;
|
||||||
|
_configService.Save();
|
||||||
|
_nameplateHandler.ClearNameplateCaches();
|
||||||
|
_nameplateHandler.FlagRefresh();
|
||||||
|
_nameplateService.RequestRedraw();
|
||||||
|
}
|
||||||
|
_uiShared.DrawHelpText("Toggles paired player(s) Lightfinder label.");
|
||||||
|
|
||||||
_uiShared.ColoredSeparator(UIColors.Get("LightlessPurpleDefault"), 1.5f);
|
_uiShared.ColoredSeparator(UIColors.Get("LightlessPurpleDefault"), 1.5f);
|
||||||
|
|
||||||
ImGui.TextUnformatted("Label");
|
ImGui.TextUnformatted("Label");
|
||||||
|
|||||||
Reference in New Issue
Block a user