diff --git a/PlayerTags/Configuration/PluginConfiguration.cs b/PlayerTags/Configuration/PluginConfiguration.cs index 305dd2a..6863757 100644 --- a/PlayerTags/Configuration/PluginConfiguration.cs +++ b/PlayerTags/Configuration/PluginConfiguration.cs @@ -12,6 +12,7 @@ namespace PlayerTags.Configuration public class PluginConfiguration : IPluginConfiguration { public int Version { get; set; } = 0; + public bool IsVisible = false; public NameplateFreeCompanyVisibility NameplateFreeCompanyVisibility = NameplateFreeCompanyVisibility.Default; public NameplateTitleVisibility NameplateTitleVisibility = NameplateTitleVisibility.WhenHasTags; @@ -19,7 +20,7 @@ namespace PlayerTags.Configuration public bool IsPlayerNameRandomlyGenerated = false; public bool IsCustomTagsContextMenuEnabled = true; public bool IsShowInheritedPropertiesEnabled = true; - public bool IsPlayersTabOrderedByProximity = true; + public bool IsPlayersTabOrderedByProximity = false; public bool IsPlayersTabSelfVisible = true; public bool IsPlayersTabFriendsVisible = true; public bool IsPlayersTabPartyVisible = true; diff --git a/PlayerTags/Configuration/PluginConfigurationUI.cs b/PlayerTags/Configuration/PluginConfigurationUI.cs index 0b26f08..c005974 100644 --- a/PlayerTags/Configuration/PluginConfigurationUI.cs +++ b/PlayerTags/Configuration/PluginConfigurationUI.cs @@ -89,6 +89,8 @@ namespace PlayerTags.Configuration ImGui.BeginGroup(); ImGui.Columns(2); + ImGui.Spacing(); + ImGui.Spacing(); ImGui.BeginGroup(); DrawTree(m_PluginData.AllTags); ImGui.EndGroup(); @@ -107,7 +109,7 @@ namespace PlayerTags.Configuration ImGui.EndTabItem(); } - if (ImGui.BeginTabItem(Strings.Loc_Static_Players)) + if (ImGui.BeginTabItem(Strings.Loc_Static_QuickTag)) { ImGui.Spacing(); ImGui.Spacing(); @@ -120,6 +122,8 @@ namespace PlayerTags.Configuration DrawCheckbox(nameof(m_PluginConfiguration.IsPlayersTabEnemiesVisible), true, ref m_PluginConfiguration.IsPlayersTabEnemiesVisible, () => m_PluginConfiguration.Save(m_PluginData)); DrawCheckbox(nameof(m_PluginConfiguration.IsPlayersTabOthersVisible), true, ref m_PluginConfiguration.IsPlayersTabOthersVisible, () => m_PluginConfiguration.Save(m_PluginData)); + ImGui.Spacing(); + ImGui.Spacing(); if (ImGui.BeginTable("##PlayersTable", 1 + m_PluginData.CustomTags.Count)) { ImGui.TableHeader(Strings.Loc_Static_PlayerName); @@ -636,7 +640,7 @@ namespace PlayerTags.Configuration } else if (selectedInheritable.Inheritable.Value is InheritableValue inheritableTagPosition) { - DrawInheritable(selectedInheritable.Inheritable.Key, false, true, inheritableTagPosition); + DrawInheritable(selectedInheritable.Inheritable.Key, true, false, inheritableTagPosition); } else if (selectedInheritable.Inheritable.Value is InheritableValue inheritableNameplateElement) { @@ -694,6 +698,11 @@ namespace PlayerTags.Configuration ImGui.BeginChild(inheritable.GetHashCode().ToString(), new Vector2(0 , 50)); ImGui.Text(Localizer.GetString(localizedStringName, false)); + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip(Localizer.GetString(localizedStringName, true)); + } + if (isDisabled) { ImGui.SameLine(); @@ -740,6 +749,11 @@ namespace PlayerTags.Configuration ImGui.BeginChild(inheritable.GetHashCode().ToString(), new Vector2(0, 50)); ImGui.Text(Localizer.GetString(localizedStringName, false)); + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip(Localizer.GetString(localizedStringName, true)); + } + if (isDisabled) { ImGui.SameLine(); @@ -811,6 +825,11 @@ namespace PlayerTags.Configuration ImGui.BeginChild(inheritable.GetHashCode().ToString(), new Vector2(180, 50)); ImGui.Text(Localizer.GetString(localizedStringName, false)); + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip(Localizer.GetString(localizedStringName, true)); + } + if (isDisabled) { ImGui.SameLine(); @@ -911,6 +930,11 @@ namespace PlayerTags.Configuration ImGui.BeginChild(inheritable.GetHashCode().ToString(), new Vector2(0, 50)); ImGui.Text(Localizer.GetString(localizedStringName, false)); + if (ImGui.IsItemHovered()) + { + ImGui.SetTooltip(Localizer.GetString(localizedStringName, true)); + } + if (isDisabled) { ImGui.SameLine(); diff --git a/PlayerTags/Resources/Strings.Designer.cs b/PlayerTags/Resources/Strings.Designer.cs index f9e0dc4..6676b53 100644 --- a/PlayerTags/Resources/Strings.Designer.cs +++ b/PlayerTags/Resources/Strings.Designer.cs @@ -1014,15 +1014,6 @@ namespace PlayerTags.Resources { } } - /// - /// Looks up a localized string similar to Players. - /// - public static string Loc_Static_Players { - get { - return ResourceManager.GetString("Loc_Static_Players", resourceCulture); - } - } - /// /// Looks up a localized string similar to Player Tags. /// @@ -1032,6 +1023,15 @@ namespace PlayerTags.Resources { } } + /// + /// Looks up a localized string similar to Quick Tag. + /// + public static string Loc_Static_QuickTag { + get { + return ResourceManager.GetString("Loc_Static_QuickTag", resourceCulture); + } + } + /// /// Looks up a localized string similar to Remove this custom tag.. /// diff --git a/PlayerTags/Resources/Strings.resx b/PlayerTags/Resources/Strings.resx index 205c7ab..952d17c 100644 --- a/PlayerTags/Resources/Strings.resx +++ b/PlayerTags/Resources/Strings.resx @@ -126,8 +126,8 @@ General - - Players + + Quick Tag Tagged Players @@ -307,72 +307,72 @@ Icon - The icon that will be displayed in the tag. + The icon that will be displayed. - Icon visible in chat + Show in chat - Whether the icon is visible in the tag in chat. + Whether the icon will be shown in chat. - Icon visible in nameplates + Show in nameplates - Whether the icon is visible in the tag in nameplates. + Whether the icon will be shown in nameplates. Text - The text that will be displayed in the tag. + The text that will be displayed. - Text color + Color - The color of the text in the tag. + The color of the text. - Text glow color + Glow color - The glow color of the text in the tag. + The glow color of the text. Text italic - Whether the text in the tag is italic. + Whether the text will be italic. - Text visible in chat + Show in chat - Whether the text is visible in the tag in chat. + Whether the text will be shown in chat. - Text visible in nameplates + Show in nameplates - Whether the text is visible in the tag in nameplates. + Whether the text will be shown in nameplates. - Tag position in chat + Position in chat - Where the tag should be positioned in chat. + Where the tag will be positioned in chat. - Tag position in nameplates + Position in nameplates - Where the tag should be positioned in nameplates. + Where the tag will be positioned in nameplates. - Tag target in nameplates + Target in nameplates The element that the tag should target in nameplates. @@ -481,7 +481,7 @@ Order by proximity - Players that are closer to the local player will be ordered towards the top. + Players that are closer to you will be ordered towards the top.