aers / FFXIVClientStructs

Resources for reverse-engineering the FFXIV client's native classes.
MIT License
218 stars 152 forks source link

Add AgentEmote #1052

Closed Haselnussbomber closed 1 month ago

Haselnussbomber commented 1 month ago

Example code that executes the Wave emote:

using var disabled = ImRaii.Disabled(!AgentEmote.Instance()->CanUseEmote(16));

if (ImGui.Button("Execute Emote"))
{
    var playEmoteOption = new EmoteController.PlayEmoteOption
    {
        TargetId = TargetSystem.Instance()->GetTargetObjectId()
    };
    AgentEmote.Instance()->ExecuteEmote(16, &playEmoteOption);
}

if (ImGui.Button("Execute Emote (without log message)"))
{
    var playEmoteOption = new EmoteController.PlayEmoteOption
    {
        TargetId = TargetSystem.Instance()->GetTargetObjectId(),
        Flags = 1
    };
    AgentEmote.Instance()->ExecuteEmote(16, &playEmoteOption);
}
github-actions[bot] commented 1 month ago

Field size exceeds struct size in Client::UI::AddonJobHudBLM1::AstralGauge with field AstralSoulStacks Field size exceeds struct size in Client::UI::AddonJobHudBLM1::AstralGaugeSimple with field AstralSoulStacks