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

Commit

Permalink
fix: fixed rotation link bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 8, 2023
1 parent c7c91e8 commit dea4657
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions RotationSolver/RotationSolverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
using RotationSolver.Localization;
using RotationSolver.UI;
using RotationSolver.Updaters;
using System.Drawing;
using System.Runtime.InteropServices;
using Module = ECommons.Module;

namespace RotationSolver;
Expand Down
16 changes: 13 additions & 3 deletions RotationSolver/UI/RotationConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using ECommons.ImGuiMethods;
using ExCSS;
using FFXIVClientStructs.FFXIV.Client.Game.Fate;
using FFXIVClientStructs.FFXIV.Client.Game.UI;
using FFXIVClientStructs.FFXIV.Common.Component.BGCollision;
using Lumina.Excel.GeneratedSheets;
using RotationSolver.Basic.Configuration;
Expand Down Expand Up @@ -1101,7 +1102,7 @@ private static void DrawRotationInformation()
{
var userName = info.GitHubUserName;
var repository = info.GitHubRepository;
DrawGitHubBadge(userName, repository, $"https://github.com/{userName}/{repository}/blob/{link.Path}", center: true);
DrawGitHubBadge(userName, repository, link.Path, $"https://github.com/{userName}/{repository}/blob/{link.Path}", center: true);
}
ImGui.NewLine();

Expand Down Expand Up @@ -2280,9 +2281,18 @@ private static void DrawLastAction()

private static unsafe void DrawIcon()
{
if (Player.Available)
ImGui.Text("Hate");
foreach (var hate in UIState.Instance()->Hate.HateArraySpan)
{
ImGui.Text(Player.GameObject->Height.ToString());
var name = Svc.Objects.SearchById(hate.ObjectId)?.Name ?? "Unknown";
ImGui.Text($"{name} : {hate.Enmity}");
}
ImGui.Spacing();
ImGui.Text("Hater");
foreach (var hater in UIState.Instance()->Hater.HaterArraySpan)
{
var name = Svc.Objects.SearchById(hater.ObjectId)?.Name ?? "Unknown";
ImGui.Text($"{name} : {hater.Enmity}");
}

ImGui.Text(DataCenter.TerritoryContentType.ToString());
Expand Down
6 changes: 6 additions & 0 deletions RotationSolver/Updaters/MajorUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using ECommons.DalamudServices;
using ECommons.GameHelpers;
using ECommons.ImGuiMethods;
using FFXIVClientStructs.FFXIV.Client.Game;
using FFXIVClientStructs.FFXIV.Client.Game.Control;
using FFXIVClientStructs.FFXIV.Client.Game.UI;
using FFXIVClientStructs.FFXIV.Component.GUI;
Expand Down Expand Up @@ -69,6 +70,11 @@ private unsafe static void FrameworkUpdate(IFramework framework)
});
}

#if DEBUG
//*(float*)((IntPtr)(void*)CameraManager.Instance()->Camera + 0x130) = 0;

#endif

try
{
SocialUpdater.UpdateSocial();
Expand Down

0 comments on commit dea4657

Please sign in to comment.