From a6c88be9dd856fb59204e32be6805f763ace9d6e Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Fri, 16 Sep 2022 17:14:54 +0200 Subject: [PATCH] add new options, but not use them yet --- .../Configuration/PluginConfigurationUI.cs | 12 +++++ PlayerTags/Data/DefaultPluginData.cs | 5 ++ PlayerTags/Data/Tag.cs | 9 ++++ PlayerTags/Resources/Strings.Designer.cs | 54 +++++++++++++++++++ PlayerTags/Resources/Strings.de.resx | 52 ++++++++++++------ PlayerTags/Resources/Strings.resx | 18 +++++++ 6 files changed, 133 insertions(+), 17 deletions(-) diff --git a/PlayerTags/Configuration/PluginConfigurationUI.cs b/PlayerTags/Configuration/PluginConfigurationUI.cs index ae73ad4..eb868c5 100644 --- a/PlayerTags/Configuration/PluginConfigurationUI.cs +++ b/PlayerTags/Configuration/PluginConfigurationUI.cs @@ -679,6 +679,18 @@ namespace PlayerTags.Configuration { DrawInheritable(selectedInheritable.Inheritable.Key, true, false, inheritableNameplateElement); } + else if (selectedInheritable.Inheritable.Value is InheritableValue inheritableFreeCompanyVisibility) + { + DrawInheritable(selectedInheritable.Inheritable.Key, true, false, inheritableFreeCompanyVisibility); + } + else if (selectedInheritable.Inheritable.Value is InheritableValue inheritableNameplateTitleVisibility) + { + DrawInheritable(selectedInheritable.Inheritable.Key, true, false, inheritableNameplateTitleVisibility); + } + else if (selectedInheritable.Inheritable.Value is InheritableValue inheritableNameplateTitlePosition) + { + DrawInheritable(selectedInheritable.Inheritable.Key, true, false, inheritableNameplateTitlePosition); + } else if (selectedInheritable.Inheritable.Value is InheritableReference inheritableString) { DrawInheritable(selectedInheritable.Inheritable.Key, inheritableString); diff --git a/PlayerTags/Data/DefaultPluginData.cs b/PlayerTags/Data/DefaultPluginData.cs index 1d09d2d..3697a84 100644 --- a/PlayerTags/Data/DefaultPluginData.cs +++ b/PlayerTags/Data/DefaultPluginData.cs @@ -25,6 +25,7 @@ namespace PlayerTags.Data IsSelected = true, IsExpanded = true, TagPositionInChat = TagPosition.Before, + InsertBehindNumberPrefixInChat = true, TagPositionInNameplates = TagPosition.Replace, TagTargetInNameplates = NameplateElement.Title, IsTextItalic = true, @@ -33,6 +34,10 @@ namespace PlayerTags.Data IsVisibleInPveDuties = true, IsVisibleInPvpDuties = true, + NameplateFreeCompanyVisibility = NameplateFreeCompanyVisibility.Never, + NameplateTitleVisibility = NameplateTitleVisibility.Always, + NameplateTitlePosition = NameplateTitlePosition.AlwaysAboveName, + IsVisibleForSelf = true, IsVisibleForFriendPlayers = true, IsVisibleForPartyPlayers = true, diff --git a/PlayerTags/Data/Tag.cs b/PlayerTags/Data/Tag.cs index cadbccb..d96e16f 100644 --- a/PlayerTags/Data/Tag.cs +++ b/PlayerTags/Data/Tag.cs @@ -124,9 +124,18 @@ namespace PlayerTags.Data [InheritableCategory("TextCategory")] public InheritableValue IsTextColorAppliedToNameplateFreeCompany = new InheritableValue(false); + [InheritableCategory("NameplateCategory")] + public InheritableValue NameplateFreeCompanyVisibility = new InheritableValue(Data.NameplateFreeCompanyVisibility.Default); + [InheritableCategory("NameplateCategory")] + public InheritableValue NameplateTitleVisibility = new InheritableValue(Data.NameplateTitleVisibility.Default); + [InheritableCategory("NameplateCategory")] + public InheritableValue NameplateTitlePosition = new InheritableValue(Data.NameplateTitlePosition.Default); + [InheritableCategory("PositionCategory")] public InheritableValue TagPositionInChat = new InheritableValue(TagPosition.Before); [InheritableCategory("PositionCategory")] + public InheritableValue InsertBehindNumberPrefixInChat = new InheritableValue(true); + [InheritableCategory("PositionCategory")] public InheritableValue TagPositionInNameplates = new InheritableValue(TagPosition.Before); [InheritableCategory("PositionCategory")] public InheritableValue TagTargetInNameplates = new InheritableValue(NameplateElement.Name); diff --git a/PlayerTags/Resources/Strings.Designer.cs b/PlayerTags/Resources/Strings.Designer.cs index cd33701..8d069b7 100644 --- a/PlayerTags/Resources/Strings.Designer.cs +++ b/PlayerTags/Resources/Strings.Designer.cs @@ -267,6 +267,24 @@ namespace PlayerTags.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Insert behind group number prefix in chat ähnelt. + /// + public static string Loc_InsertBehindNumberPrefixInChat { + get { + return ResourceManager.GetString("Loc_InsertBehindNumberPrefixInChat", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die If enabled, the Tag and Icon will get insert behind the Group/Alliance number prefix in Chat instead of before. ähnelt. + /// + public static string Loc_InsertBehindNumberPrefixInChat_Description { + get { + return ResourceManager.GetString("Loc_InsertBehindNumberPrefixInChat_Description", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Apply tags to all chat messages ähnelt. /// @@ -861,6 +879,15 @@ namespace PlayerTags.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Nameplate properties ähnelt. + /// + public static string Loc_NameplateCategory { + get { + return ResourceManager.GetString("Loc_NameplateCategory", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Free company ähnelt. /// @@ -942,6 +969,15 @@ namespace PlayerTags.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Defines whenever the free company element of the nameplate should be visible or not. ähnelt. + /// + public static string Loc_NameplateFreeCompanyVisibility_Description { + get { + return ResourceManager.GetString("Loc_NameplateFreeCompanyVisibility_Description", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Never visible ähnelt. /// @@ -1023,6 +1059,15 @@ namespace PlayerTags.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Defines the position for the title element of the nameplate. Should it be above or below the name? You can decide! ähnelt. + /// + public static string Loc_NameplateTitlePosition_Description { + get { + return ResourceManager.GetString("Loc_NameplateTitlePosition_Description", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Title visibility ähnelt. /// @@ -1068,6 +1113,15 @@ namespace PlayerTags.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Defines whenever the title element of the nameplate should be visible or not. ähnelt. + /// + public static string Loc_NameplateTitleVisibility_Description { + get { + return ResourceManager.GetString("Loc_NameplateTitleVisibility_Description", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Never visible ähnelt. /// diff --git a/PlayerTags/Resources/Strings.de.resx b/PlayerTags/Resources/Strings.de.resx index 422c6cf..0059a5e 100644 --- a/PlayerTags/Resources/Strings.de.resx +++ b/PlayerTags/Resources/Strings.de.resx @@ -59,46 +59,46 @@ : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> - - + + - + - - - - + + + + - - + + - - + + - - - - + + + + - + - + @@ -621,4 +621,22 @@ Andere (Experimentell) + + Nach der Gruppennummer im Chat hinzufügen + + + Wenn akiviert, dann wird der Tag und das Symbol hinter der Gruppen-/Allianznummer im Chat hinzugefügt, nicht davor. + + + Namensanzeige-Eigenschaften + + + Definiert, wann auch immer das Element zum Anzeigen der Freien Gesellschaft in der Namensanzeige sicht ist oder nicht. + + + Definiert, wo das Element zum Anzeigen der Titels in der Namensanzeige angezeigt werden soll. + + + Definiert, wann auch immer das Element zum Anzeigen der Titels in der Namensanzeige sicht ist oder nicht. + \ No newline at end of file diff --git a/PlayerTags/Resources/Strings.resx b/PlayerTags/Resources/Strings.resx index 74fe9b7..7138a82 100644 --- a/PlayerTags/Resources/Strings.resx +++ b/PlayerTags/Resources/Strings.resx @@ -621,4 +621,22 @@ Other (Experimental) + + Insert behind group number prefix in chat + + + If enabled, the Tag and Icon will get insert behind the Group/Alliance number prefix in Chat instead of before. + + + Nameplate properties + + + Defines whenever the free company element of the nameplate should be visible or not. + + + Defines the position for the title element of the nameplate. Should it be above or below the name? You can decide! + + + Defines whenever the title element of the nameplate should be visible or not. + \ No newline at end of file