Add world to quick tag UI
This commit is contained in:
@@ -247,7 +247,14 @@ namespace PlayerTags.Configuration
|
||||
ImGui.TableNextColumn();
|
||||
|
||||
ImGui.AlignTextToFramePadding();
|
||||
ImGui.Text(identity.ToString());
|
||||
ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, new Vector2(4, 0));
|
||||
ImGui.Text(identity.Name);
|
||||
if (identity.WorldId != null)
|
||||
{
|
||||
ImGui.SameLine();
|
||||
ImGui.TextColored(new Vector4(1, 1, 1, 0.25f), $"@{identity.World}");
|
||||
}
|
||||
ImGui.PopStyleVar();
|
||||
|
||||
foreach (Tag customTag in m_PluginData.CustomTags)
|
||||
{
|
||||
|
||||
@@ -101,7 +101,19 @@ namespace PlayerTags.Data
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
string str = Name;
|
||||
|
||||
if (WorldId != null)
|
||||
{
|
||||
str += $"@{World}";
|
||||
}
|
||||
|
||||
if (Id != null)
|
||||
{
|
||||
str += $":{Id}";
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
public string ToDataString()
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Game.Text;
|
||||
using Dalamud.Game.Text;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
||||
using Dalamud.Logging;
|
||||
using PlayerTags.Configuration;
|
||||
using PlayerTags.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace PlayerTags.Features
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user