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

Commit

Permalink
fix: changed the loading order of Painter and Updater.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jun 28, 2023
1 parent b1c0134 commit e0733b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions RotationSolver/RotationSolverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using ECommons;
using ECommons.DalamudServices;
using ECommons.GameHelpers;
using ECommons.ImGuiMethods;
using RotationSolver.Basic.Configuration;
using RotationSolver.Commands;
using RotationSolver.Data;
Expand Down Expand Up @@ -33,9 +34,9 @@ public sealed class RotationSolverPlugin : IDalamudPlugin, IDisposable
public RotationSolverPlugin(DalamudPluginInterface pluginInterface)
{
ECommonsMain.Init(pluginInterface, this, Module.DalamudReflector, Module.ObjectFunctions);
ThreadLoadImageHandler.TryGetIconTextureWrap(0, false, out _);

//Init!
//ThreadLoadImageHandler.TryGetIconTextureWrap(0, false, out _);
Clipper.InflatePaths(new PathsD(new PathD[] { Clipper.MakePath(new double[] {0, 0, 1, 1 }) }), 0, JoinType.Round, EndType.Joined);
try
{
Expand All @@ -62,8 +63,8 @@ public RotationSolverPlugin(DalamudPluginInterface pluginInterface)
Svc.PluginInterface.UiBuilder.OpenConfigUi += OnOpenConfigUi;
Svc.PluginInterface.UiBuilder.Draw += windowSystem.Draw;

MajorUpdater.Enable();
PainterManager.Init();
MajorUpdater.Enable();
Watcher.Enable();
OtherConfiguration.Init();
_dis.Add(new MovingController());
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/UI/PainterManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ public override void UpdateOnFrame(XIVPainter.XIVPainter painter)
}

internal static XIVPainter.XIVPainter _painter;
static PositionalDrawing _positional;
static DrawingHighlightHotbar _highLight;
static PositionalDrawing _positional = new();
static DrawingHighlightHotbar _highLight = new();

public static HashSet<uint> ActionIds => _highLight.ActionIds;

Expand Down

0 comments on commit e0733b4

Please sign in to comment.