fix: update tryon offset

This commit is contained in:
Anna 2023-05-29 22:36:11 -04:00
parent 4ff1e07bd0
commit 0ac9608fa4
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using FFXIVClientStructs.FFXIV.Client.System.Framework;
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
@ -28,7 +29,7 @@ namespace Glamaholic.Ui.Helpers {
return;
}
var right = this.Ui.Plugin.Interface.PluginInternalNames.Contains("ItemSearchPlugin");
var right = this.Ui.Plugin.Interface.InstalledPlugins.Any(state => state.InternalName == "ItemSearchPlugin");
HelperUtil.DrawHelper(tryOnAddon, "glamaholic-helper-try-on", right, this.DrawDropdown);
}
@ -48,7 +49,7 @@ namespace Glamaholic.Ui.Helpers {
private static unsafe Dictionary<PlateSlot, SavedGlamourItem> GetTryOnItems() {
var agent = (IntPtr) Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentByInternalId(AgentId.Tryon);
var firstItem = agent + 0x2E8;
var firstItem = agent + 0x314;
var items = new Dictionary<PlateSlot, SavedGlamourItem>();