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

Commit

Permalink
fix: test with Splatoon.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 19, 2023
1 parent b5054a5 commit b22b73a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ECommons
23 changes: 23 additions & 0 deletions Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
"69": 0.6,
"70": 0.6,
"74": 0.6,
"75": 0.6,
"78": 0.6,
"83": 0.6,
"85": 0.6,
"87": 0.6,
"90": 0.6,
"95": 0.8,
"96": 0.8,
"97": 0.6,
"98": 0.6,
"100": 0.6,
Expand Down Expand Up @@ -67,6 +75,10 @@
"3549": 0.6,
"3550": 0.6,
"3552": 0.6,
"3554": 0.6,
"3555": 0.6,
"3556": 0.6,
"3557": 0.6,
"3558": 0.6,
"3559": 0.6,
"3560": 0.6,
Expand Down Expand Up @@ -117,6 +129,9 @@
"7389": 0.6,
"7395": 0.6,
"7396": 0.6,
"7398": 0.6,
"7399": 0.6,
"7400": 0.6,
"7404": 0.6,
"7406": 0.6,
"7407": 0.6,
Expand Down Expand Up @@ -198,6 +213,9 @@
"16462": 0.6,
"16464": 0.6,
"16473": 0.6,
"16478": 0.8,
"16479": 0.6,
"16480": 1.5,
"16495": 0.6,
"16496": 0.6,
"16498": 0.6,
Expand All @@ -213,6 +231,8 @@
"16525": 0.1,
"16527": 0.6,
"16531": 0.6,
"16532": 0.6,
"16533": 0.1,
"16542": 0.6,
"16552": 0.6,
"16553": 0.6,
Expand Down Expand Up @@ -285,6 +305,9 @@
"25763": 0.6,
"25766": 0.6,
"25768": 0.6,
"25771": 0.6,
"25772": 0.6,
"25773": 0.6,
"25784": 0.6,
"25785": 0.6,
"25788": 0.6,
Expand Down
25 changes: 21 additions & 4 deletions RotationSolver/RotationSolverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using Dalamud.Plugin;
using ECommons;
using ECommons.DalamudServices;
using ECommons.GameHelpers;
using ECommons.SplatoonAPI;
using RotationSolver.Basic.Configuration;
using RotationSolver.Commands;
using RotationSolver.Data;
Expand All @@ -30,10 +32,10 @@ public sealed class RotationSolverPlugin : IDalamudPlugin, IDisposable
public static DalamudLinkPayload LinkPayload { get; private set; }
public RotationSolverPlugin(DalamudPluginInterface pluginInterface)
{
pluginInterface.Create<Service>();

ECommonsMain.Init(pluginInterface, this, ECommons.Module.SplatoonAPI);

pluginInterface.Create<Service>();

try
{
Service.Config = JsonConvert.DeserializeObject<PluginConfiguration>(
Expand Down Expand Up @@ -72,8 +74,6 @@ public RotationSolverPlugin(DalamudPluginInterface pluginInterface)
#endif
ChangeUITranslation();



Task.Run(async () =>
{
await RotationUpdater.GetAllCustomRotationsAsync(DownloadOption.Download);
Expand All @@ -84,6 +84,21 @@ public RotationSolverPlugin(DalamudPluginInterface pluginInterface)
{
if(id == 0) OpenConfigWindow();
});


Task.Run(async () =>
{
await Task.Delay(1000);
Splatoon.RemoveDynamicElements("Test");
//var element = new Element(ElementType.CircleRelativeToActorPosition);
//element.refActorObjectID = Player.Object.ObjectId;
//element.refActorComparisonType = RefActorComparisonType.ObjectID;
//element.includeHitbox = true;
//element.radius = 0.5f;
//element.Donut = 0.8f;
//element.color = ImGui.GetColorU32(new Vector4(1, 1, 1, 0.4f));
//Svc.Toasts.ShowQuest(Splatoon.AddDynamicElement("Test", element, -2).ToString());
});
}

internal static void ChangeUITranslation()
Expand Down Expand Up @@ -112,6 +127,8 @@ public void Dispose()

IconSet.Dispose();
OtherConfiguration.Save();

ECommonsMain.Dispose();
}

private void OnOpenConfigUi()
Expand Down

0 comments on commit b22b73a

Please sign in to comment.