code formatting

This commit is contained in:
2023-10-06 21:01:07 +02:00
parent 27d900bee3
commit 86448e1490
2 changed files with 8 additions and 17 deletions

View File

@@ -52,16 +52,13 @@ namespace PlayerTags.Features
{
if (m_Nameplate == null)
{
m_Nameplate = new Nameplate();
m_Nameplate = new();
if (!m_Nameplate.IsValid)
{
m_Nameplate = null;
}
if (m_Nameplate != null)
{
m_Nameplate.PlayerNameplateUpdated += Nameplate_PlayerNameplateUpdated;
}
}
}
@@ -88,20 +85,14 @@ namespace PlayerTags.Features
protected override bool IsIconVisible(Tag tag)
{
if (tag.IsRoleIconVisibleInNameplates.InheritedValue != null)
{
return tag.IsRoleIconVisibleInNameplates.InheritedValue.Value;
}
return false;
}
protected override bool IsTextVisible(Tag tag)
{
if (tag.IsTextVisibleInNameplates.InheritedValue != null)
{
return tag.IsTextVisibleInNameplates.InheritedValue.Value;
}
return false;
}

View File

@@ -23,13 +23,13 @@ namespace PlayerTags
private const string c_CommandArg_Off = "off";
private const string c_CommandArg_toggle = "toggle";
private PluginConfiguration pluginConfiguration = null;
private PluginData pluginData = null;
private PluginConfigurationUI pluginConfigurationUI = null;
private readonly PluginConfiguration pluginConfiguration = null;
private readonly PluginData pluginData = null;
private readonly PluginConfigurationUI pluginConfigurationUI = null;
private CustomTagsContextMenuFeature customTagsContextMenuFeature;
private NameplateTagTargetFeature nameplatesTagTargetFeature;
private ChatTagTargetFeature chatTagTargetFeature;
private readonly CustomTagsContextMenuFeature customTagsContextMenuFeature;
private readonly NameplateTagTargetFeature nameplatesTagTargetFeature;
private readonly ChatTagTargetFeature chatTagTargetFeature;
public Plugin(DalamudPluginInterface pluginInterface)
{