mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 13:14:17 +01:00
Temporary fix for broken CS offset.
This commit is contained in:
parent
2a7ccb952d
commit
2f836426d6
3 changed files with 6 additions and 8 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1e65d3fd028d3ac58090a8c886f351acbd9f3a2a
|
Subproject commit 9eb60aa0fdaad4a10af2edd77b154a20c7647ce4
|
||||||
|
|
@ -152,11 +152,7 @@ public class ItemSwapTab : IDisposable, ITab
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly Dictionary<SwapType, (ItemSelector Source, ItemSelector Target, string TextFrom, string TextTo)> _selectors;
|
private readonly Dictionary<SwapType, (ItemSelector Source, ItemSelector Target, string TextFrom, string TextTo)> _selectors;
|
||||||
|
private readonly ItemSwapContainer _swapData;
|
||||||
private ItemSelector? _weaponSource;
|
|
||||||
private ItemSelector? _weaponTarget;
|
|
||||||
private readonly WeaponSelector _slotSelector = new();
|
|
||||||
private readonly ItemSwapContainer _swapData;
|
|
||||||
|
|
||||||
private Mod? _mod;
|
private Mod? _mod;
|
||||||
private ModSettings? _modSettings;
|
private ModSettings? _modSettings;
|
||||||
|
|
|
||||||
|
|
@ -500,11 +500,13 @@ public class DebugTab : Window, ITab
|
||||||
|
|
||||||
if (agent->Data != null)
|
if (agent->Data != null)
|
||||||
{
|
{
|
||||||
using var table = Table("###PBannerTable", 2, ImGuiTableFlags.SizingFixedFit);
|
// TODO fix when updated in CS.
|
||||||
|
var characterData = (AgentBannerInterface.Storage.CharacterData*)((byte*)agent->Data + 0x20);
|
||||||
|
using var table = Table("###PBannerTable", 2, ImGuiTableFlags.SizingFixedFit);
|
||||||
if (table)
|
if (table)
|
||||||
for (var i = 0; i < 8; ++i)
|
for (var i = 0; i < 8; ++i)
|
||||||
{
|
{
|
||||||
ref var c = ref agent->Data->CharacterArraySpan[i];
|
ref var c = ref *(characterData + i);
|
||||||
ImGuiUtil.DrawTableColumn($"Character {i}");
|
ImGuiUtil.DrawTableColumn($"Character {i}");
|
||||||
var name = c.Name1.ToString();
|
var name = c.Name1.ToString();
|
||||||
ImGuiUtil.DrawTableColumn(name.Length == 0 ? "NULL" : $"{name} ({c.WorldId})");
|
ImGuiUtil.DrawTableColumn(name.Length == 0 ? "NULL" : $"{name} ({c.WorldId})");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue