fix: update tryon offset
This commit is contained in:
parent
4ff1e07bd0
commit
0ac9608fa4
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using FFXIVClientStructs.FFXIV.Client.System.Framework;
|
using FFXIVClientStructs.FFXIV.Client.System.Framework;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||||
|
@ -28,7 +29,7 @@ namespace Glamaholic.Ui.Helpers {
|
||||||
return;
|
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);
|
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() {
|
private static unsafe Dictionary<PlateSlot, SavedGlamourItem> GetTryOnItems() {
|
||||||
var agent = (IntPtr) Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentByInternalId(AgentId.Tryon);
|
var agent = (IntPtr) Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentByInternalId(AgentId.Tryon);
|
||||||
var firstItem = agent + 0x2E8;
|
var firstItem = agent + 0x314;
|
||||||
|
|
||||||
var items = new Dictionary<PlateSlot, SavedGlamourItem>();
|
var items = new Dictionary<PlateSlot, SavedGlamourItem>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue