Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion FFXIVClientStructs/FFXIV/Component/GUI/AtkComponentHoldButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,28 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI;
[GenerateInterop]
[Inherits<AtkComponentButton>]
[StructLayout(LayoutKind.Explicit, Size = 0x120)]
public partial struct AtkComponentHoldButton : ICreatable {
public unsafe partial struct AtkComponentHoldButton : ICreatable {
[FieldOffset(0xF0)] public AtkResNode* ProgressResNode;
[FieldOffset(0xF8)] public AtkImageNode* ProgressImageNode;
[FieldOffset(0x100)] public bool IsTargetReached;
[FieldOffset(0x101)] public bool IsEventFired; // seems to be a safety mechanism to prevent multiple events from firing at the same time

[FieldOffset(0x104)] public float Duration;
[FieldOffset(0x108)] public float DecreaseRate;
[FieldOffset(0x10C)] public ProgressState Progress;

[MemberFunction("40 53 48 83 EC 20 48 8B D9 E8 ?? ?? ?? ?? 48 8D 05 ?? ?? ?? ?? C7 83 ?? ?? ?? ?? ?? ?? ?? ?? 48 89 03 33 C0 48 89 83 ?? ?? ?? ?? 48 89 83 ?? ?? ?? ?? 66 89 83 ?? ?? ?? ?? 48 89 83 ?? ?? ?? ??")]
public partial void Ctor();

[GenerateInterop]
[StructLayout(LayoutKind.Explicit, Size = 0x10)]
public partial struct ProgressState {
[FieldOffset(0x00)] public float StartValue;
[FieldOffset(0x04)] public float TargetValue;
[FieldOffset(0x08)] public float CurrentValue;
[FieldOffset(0x0C)] public float EndValue;

[MemberFunction("F3 0F 10 05 ?? ?? ?? ?? 0F 2F C1 F3 0F 11 51")]
public partial void StartProgress(float currentValue, float targetValue, float endValue);
}
}
Loading