Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add an alpha value for positional.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 25, 2023
1 parent 1b92924 commit 4fe1a02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions RotationSolver.Basic/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public class PluginConfiguration : IPluginConfiguration
public float HealthDifference = 0.25f;
public float MeleeRangeOffset = 1;
public bool TargetFriendly = false;
public float AlphaInFill = 0.15f;

public Dictionary<ClassJobID, float> HealingOfTimeSubtractSingles { get; set; } = new Dictionary<ClassJobID, float>();

Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ internal partial class Strings
public string ConfigWindow_Param_DrawMeleeRange { get; set; } = "Draw the range of melee on the screen";

public string ConfigWindow_Param_DrawMeleeOffset { get; set; } = "Draw the offset of melee on the screen";
public string ConfigWindow_Param_AlphaInFill { get; set; } = "The alpha value in fill.";
public string ConfigWindow_Param_ShowMoveTarget { get; set; } = "Show the target of the move action";
public string ConfigWindow_Param_ShowTarget { get; set; } = "Show Target";
public string ConfigWindow_Param_PositionalFeedbackDesc { get; set; } = "Attention: Positional anticipation is experimental, just for reference only.";
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/UI/OverlayWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static void DrawFill(IEnumerable<Vector2> pts, Vector3 color)
{
ImGui.GetWindowDrawList().PathLineTo(pt);
}
ImGui.GetWindowDrawList().PathFillConvex(ImGui.GetColorU32(new Vector4(color.X, color.Y, color.Z, 0.15f)));
ImGui.GetWindowDrawList().PathFillConvex(ImGui.GetColorU32(new Vector4(color.X, color.Y, color.Z, Service.Config.AlphaInFill)));
}

static void DrawBoundary(IEnumerable<Vector2> pts, Vector3 color)
Expand Down
3 changes: 3 additions & 0 deletions RotationSolver/UI/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ private void DrawParamDisplay()

DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_DrawMeleeOffset,
ref Service.Config.DrawMeleeOffset, Service.Default.DrawMeleeOffset);

DrawFloatNumber(LocalizationManager.RightLang.ConfigWindow_Param_DrawMeleeOffset,
ref Service.Config.AlphaInFill, Service.Default.AlphaInFill);
}
}

Expand Down

0 comments on commit 4fe1a02

Please sign in to comment.