Skip to content

Commit

Permalink
Reenabled nameplate distances.
Browse files Browse the repository at this point in the history
  • Loading branch information
PunishedPineapple committed Aug 30, 2022
1 parent 9ebeaff commit c36717e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Distance/Distance.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<Platforms>AnyCPU</Platforms>
<Version>1.0.0.2</Version>
<Version>1.0.0.3</Version>
<Authors>PunishedPineapple</Authors>
<Product />
<Copyright>Copyright © PunishedPineapple 2022</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion Distance/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Plugin(
mPluginInterface.UiBuilder.Draw += DrawUI;
mPluginInterface.UiBuilder.OpenConfigUi += DrawConfigUI;
mUI.Initialize();
//NameplateHandler.Init( sigScanner, clientState, partyList, condition, gameGui, mConfiguration ); //***** TODO: Disabled because nameplates appear to be broken in ClientStructs for 6.2.
NameplateHandler.Init( sigScanner, clientState, partyList, condition, gameGui, mConfiguration );

// We need to disable automatic hiding, because we actually turn off our game UI nodes in the draw functions as-appropriate, so we can't skip the draw functions.
mPluginInterface.UiBuilder.DisableAutomaticUiHide = true;
Expand Down
7 changes: 2 additions & 5 deletions Distance/PluginUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ protected void DrawSettingsWindow()
{
ImGui.Checkbox( Loc.Localize( "Config Option: Show Aggro Distance", "Show the remaining distance from the enemy before they will detect you." ) + "###Show aggro distance.", ref mConfiguration.mShowAggroDistance );
ImGuiUtils.HelpMarker( Loc.Localize( "Help: Show Aggro Distance", "This distance will only be shown when it is known, and only on major bosses. Additionally, it will only be shown until you enter combat." ) );
//***** TODO: Nameplates are broken in 6.2; commenting out settings until fixed.
//ImGui.Checkbox( Loc.Localize( "Config Option: Show Nameplate Distances", "Show distances on nameplates." ) + "###Show nameplate distances.", ref mConfiguration.NameplateDistancesConfig.mShowNameplateDistances );
ImGui.Checkbox( Loc.Localize( "Config Option: Show Nameplate Distances", "Show distances on nameplates." ) + "###Show nameplate distances.", ref mConfiguration.NameplateDistancesConfig.mShowNameplateDistances );

if( mConfiguration.ShowAggroDistance )
{
Expand Down Expand Up @@ -188,8 +187,6 @@ protected void DrawSettingsWindow()
}
}

//***** TODO: Nameplates are broken in 6.2; commenting out settings until fixed.
/*
if( mConfiguration.NameplateDistancesConfig.ShowNameplateDistances )
{
if( ImGui.CollapsingHeader( Loc.Localize( "Config Section Header: Nameplate Settings", "Nameplate Settings" ) + "###Nameplate Settings Header." ) )
Expand Down Expand Up @@ -255,7 +252,7 @@ protected void DrawSettingsWindow()
ImGui.TreePop();
}
}
}*/
}

if( ImGui.CollapsingHeader( Loc.Localize( "Config Section Header: Miscellaneous", "Miscellaneous Options" ) + "###Misc. Options Header." ) )
{
Expand Down

0 comments on commit c36717e

Please sign in to comment.