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

Commit

Permalink
fix: fixed multi-monitor bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Aug 22, 2023
1 parent f0dfa9b commit 8f1b91b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Resources/RotationSolverRecord.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"ClickingCount": 1468
"ClickingCount": 3526
}
26 changes: 0 additions & 26 deletions RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,32 +230,6 @@ internal static EnemyPositional FindEnemyPositional(this GameObject enemy)
return EnemyPositional.Flank;
}

//internal static uint GetHealthFromMulty(float mult)
//{
// if (!Player.Available) return 0;

// var role = Service.GetSheet<ClassJob>().GetRow(
// Player.Object.ClassJob.Id).GetJobRole();
// float multi = mult * role switch
// {
// JobRole.Tank => 1,
// JobRole.Healer => 1.6f,
// _ => 1.5f,
// };

// var partyCount = DataCenter.PartyMembers.Count();
// if (partyCount > 4)
// {
// multi *= 6.4f;
// }
// else if (partyCount > 1)
// {
// multi *= 3.5f;
// }

// return (uint)(multi * Player.Object.MaxHp);
//}

/// <summary>
/// The distance from <paramref name="obj"/> to the player
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@
"SpecialCommandType_Burst": "Burst",
"SpecialCommandType_EndSpecial": "End Special",
"SpecialCommandType_Speed": "Speed",
"SpecialCommandType_Smart": "Auto Target ",
"SpecialCommandType_Smart": "Auto Target",
"SpecialCommandType_Manual": "Manual Target",
"SpecialCommandType_Cancel": "Cancel",
"SpecialCommandType_Off": "Off",
"ActionConditionType_Elapsed": "Elapsed",
"ActionConditionType_ElapsedGCD": "ElapsedG CD ",
"ActionConditionType_ElapsedGCD": "Elapsed GCD",
"ActionConditionType_Remain": "Remain Time",
"ActionConditionType_RemainGCD": "Remain GCD",
"ActionConditionType_ShouldUse": "Can Use",
Expand Down
3 changes: 2 additions & 1 deletion RotationSolver/UI/RotationConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public override void Draw()
var leftTop = ImGui.GetWindowPos() + ImGui.GetCursorPos();
var rightDown = leftTop + ImGui.GetWindowSize();
var screenSize = ImGuiHelpers.MainViewport.Size;
if (leftTop.X <= 0 || leftTop.Y <= 0 || rightDown.X >= screenSize.X || rightDown.Y >= screenSize.Y)
if ((leftTop.X <= 0 || leftTop.Y <= 0 || rightDown.X >= screenSize.X || rightDown.Y >= screenSize.Y)
&& !ImGui.GetIO().ConfigFlags.HasFlag(ImGuiConfigFlags.ViewportsEnable))
{
var str = string.Empty;
for (int i = 0; i < 150; i++)
Expand Down

0 comments on commit 8f1b91b

Please sign in to comment.