Skip to content

Commit

Permalink
disable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Sep 26, 2024
1 parent a476350 commit e322e3e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
70 changes: 35 additions & 35 deletions Automaton/Features/FCChestTabRename.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class FcChestTabRenameConfiguration
}

[Tweak(outdated: true)]
internal class FCChestTabRename : Tweak<FcChestTabRenameConfiguration>
internal class FCChestTabRename : Tweak
{
public override string Name => "Custom FC Chest Tab Names";
public override string Description => "This has been moved to SimpleTweaks.";
Expand All @@ -27,38 +27,38 @@ internal class FCChestTabRename : Tweak<FcChestTabRenameConfiguration>
// 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);
// }
//}
}
2 changes: 1 addition & 1 deletion ECommons
Submodule ECommons updated 26 files
+19 −0 ECommons/Automation/Chat.cs
+7 −1 ECommons/Automation/NeoTaskManager/TaskManager.cs
+104 −0 ECommons/Automation/NeoTaskManager/Tasks/NeoTasks.cs
+1 −1 ECommons/ECommons.csproj
+5 −5 ECommons/ExcelServices/ExcelWorldHelper.cs
+1 −1 ECommons/Funding/PatreonBanner.cs
+96 −2 ECommons/GameFunctions/NameplateKind.cs
+5 −0 ECommons/GameHelpers/Player.cs
+8 −0 ECommons/GenericHelpers.cs
+1 −1 ECommons/ImGuiMethods/EzOverlayWindow.cs
+8 −1 ECommons/ImGuiMethods/ImGuiEx/CollectionCheckbox.cs
+103 −6 ECommons/ImGuiMethods/ImGuiEx/ImGuiEx.cs
+17 −0 ECommons/ImGuiMethods/Ref.cs
+36 −22 ECommons/Reflection/DalamudReflector.cs
+2 −2 ECommons/UIHelpers/AddonMasterImplementations/!AddonMasterBase.cs
+14 −0 ECommons/UIHelpers/AddonMasterImplementations/BannerEditor.cs
+96 −0 ECommons/UIHelpers/AddonMasterImplementations/BannerList.cs
+1 −1 ECommons/UIHelpers/AddonMasterImplementations/ContextMenu.cs
+69 −0 ECommons/UIHelpers/AddonMasterImplementations/FreeCompanyCreditShop.cs
+24 −11 ECommons/UIHelpers/AddonMasterImplementations/Gathering.cs
+1 −0 ECommons/UIHelpers/AddonMasterImplementations/JournalDetail.cs
+17 −0 ECommons/UIHelpers/AddonMasterImplementations/MiragePrismExecute.cs
+17 −0 ECommons/UIHelpers/AddonMasterImplementations/MiragePrismRemove.cs
+35 −0 ECommons/UIHelpers/AddonMasterImplementations/RetainerSell.cs
+2 −2 ECommons/UIHelpers/AddonMasterImplementations/SalvageDialog.cs
+3 −0 ECommons/UIHelpers/AddonMasterImplementations/_CharaSelectListMenu.cs

0 comments on commit e322e3e

Please sign in to comment.