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

Commit

Permalink
fix: fixed debug window.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 26, 2023
1 parent 264e59b commit 62dffcd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Resources/RotationSolverRecord.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"ClickingCount": 19142,
"ClickingCount": 19146,
"SaidUsers": []
}
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public static unsafe bool CanSee(this GameObject b)
var tarPt = b.Position + Vector3.UnitY * b.Struct()->Height;
var direction = tarPt - point;

int* unknown = stackalloc int[] { 0x2000, 0, 0x2000, 0 };
int* unknown = stackalloc int[] { 0x4000, 0, 0x4000, 0 };

RaycastHit hit = default;

Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@
"WhiteMana": "White Mana",
"BlackMana": "Black Mana",
"ManaStacks": "Mana Stacks",
"IsWhiteManaLargerThanBlackMana": "Is White Mana Larger Than Black Mana",
"HasEnshrouded": "Has Enshrouded",
"HasSoulReaver": "Has Soul Reaver",
"Soul": "Soul",
Expand Down
6 changes: 5 additions & 1 deletion RotationSolver/UI/RotationConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,11 @@ internal static void DrawLinkDescription(LinkDescription link, float wholeWidth,
private static string GetRotationStatusHead()
{
var rotation = DataCenter.RightNowRotation;
if (rotation == null || !rotation.ShowStatus) return string.Empty;
if (Service.Config.GetValue(PluginConfigBool.InDebug))
{
return LocalizationManager.RightLang.ConfigWindow_Rotation_Status;
}
if ( rotation == null || !rotation.ShowStatus) return string.Empty;
return LocalizationManager.RightLang.ConfigWindow_Rotation_Status;
}

Expand Down

0 comments on commit 62dffcd

Please sign in to comment.