From e322e3ed650ce80b53451fb9ed45264af145e638 Mon Sep 17 00:00:00 2001 From: Jackson <9527380+Jaksuhn@users.noreply.github.com> Date: Fri, 27 Sep 2024 00:32:55 +0200 Subject: [PATCH] disable --- Automaton/Features/FCChestTabRename.cs | 70 +++++++++++++------------- ECommons | 2 +- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/Automaton/Features/FCChestTabRename.cs b/Automaton/Features/FCChestTabRename.cs index 2e2724b..13ebb69 100644 --- a/Automaton/Features/FCChestTabRename.cs +++ b/Automaton/Features/FCChestTabRename.cs @@ -12,7 +12,7 @@ public class FcChestTabRenameConfiguration } [Tweak(outdated: true)] -internal class FCChestTabRename : Tweak +internal class FCChestTabRename : Tweak { public override string Name => "Custom FC Chest Tab Names"; public override string Description => "This has been moved to SimpleTweaks."; @@ -27,38 +27,38 @@ internal class FCChestTabRename : Tweak // Svc.AddonLifecycle.UnregisterListener(PreDraw); //} - private unsafe void PreDraw(AddonEvent type, AddonArgs args) - { - var addon = (AtkUnitBase*)args.Addon; - if (Config.TabOne != string.Empty) - { - var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 10, 9); - if (node is not null) - node->GetAsAtkTextNode()->NodeText.SetString(Config.TabOne); - } - if (Config.TabTwo != string.Empty) - { - var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 11, 9); - if (node is not null) - node->GetAsAtkTextNode()->NodeText.SetString(Config.TabTwo); - } - if (Config.TabThree != string.Empty) - { - var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 12, 9); - if (node is not null) - node->GetAsAtkTextNode()->NodeText.SetString(Config.TabThree); - } - if (Config.TabFour != string.Empty) - { - var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 13, 9); - if (node is not null) - node->GetAsAtkTextNode()->NodeText.SetString(Config.TabFour); - } - if (Config.TabFive != string.Empty) - { - var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 14, 9); - if (node is not null) - node->GetAsAtkTextNode()->NodeText.SetString(Config.TabFive); - } - } + //private unsafe void PreDraw(AddonEvent type, AddonArgs args) + //{ + // var addon = (AtkUnitBase*)args.Addon; + // if (Config.TabOne != string.Empty) + // { + // var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 10, 9); + // if (node is not null) + // node->GetAsAtkTextNode()->NodeText.SetString(Config.TabOne); + // } + // if (Config.TabTwo != string.Empty) + // { + // var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 11, 9); + // if (node is not null) + // node->GetAsAtkTextNode()->NodeText.SetString(Config.TabTwo); + // } + // if (Config.TabThree != string.Empty) + // { + // var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 12, 9); + // if (node is not null) + // node->GetAsAtkTextNode()->NodeText.SetString(Config.TabThree); + // } + // if (Config.TabFour != string.Empty) + // { + // var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 13, 9); + // if (node is not null) + // node->GetAsAtkTextNode()->NodeText.SetString(Config.TabFour); + // } + // if (Config.TabFive != string.Empty) + // { + // var node = Utils.GetNodeByIDChain(addon->GetRootNode(), 1, 9, 14, 9); + // if (node is not null) + // node->GetAsAtkTextNode()->NodeText.SetString(Config.TabFive); + // } + //} } diff --git a/ECommons b/ECommons index 0af5b26..ab7229a 160000 --- a/ECommons +++ b/ECommons @@ -1 +1 @@ -Subproject commit 0af5b26b9be9c9f357c3caace4b4390707016c24 +Subproject commit ab7229ad0ae635a9b1578a86f89dc5514bc8ff41