muffin v7.5.0
This commit is contained in:
parent
afafd5e377
commit
a6481e7b9a
67 changed files with 4281 additions and 2372 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.Addon.Lifecycle;
|
||||
|
|
@ -113,6 +114,8 @@ internal sealed class ChocoboNameHandler : IDisposable
|
|||
|
||||
private unsafe void FireInputStringCallback(AtkUnitBase* addon, string text)
|
||||
{
|
||||
//IL_005b: Unknown result type (might be due to invalid IL or missing references)
|
||||
//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
|
||||
AtkComponentNode* componentNodeById = addon->GetComponentNodeById(9u);
|
||||
if (componentNodeById == null)
|
||||
{
|
||||
|
|
@ -127,13 +130,13 @@ internal sealed class ChocoboNameHandler : IDisposable
|
|||
}
|
||||
asAtkComponentTextInput->SetText(text);
|
||||
AtkValue* ptr = stackalloc AtkValue[2];
|
||||
ptr->Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int;
|
||||
Unsafe.Write(&ptr->Type, (AtkValueType)3);
|
||||
ptr->Int = 0;
|
||||
byte[] bytes = Encoding.UTF8.GetBytes(text);
|
||||
nint num = Marshal.AllocHGlobal(bytes.Length + 1);
|
||||
Marshal.Copy(bytes, 0, num, bytes.Length);
|
||||
Marshal.WriteByte(num + bytes.Length, 0);
|
||||
ptr[1].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.String;
|
||||
Unsafe.Write(&ptr[1].Type, (AtkValueType)8);
|
||||
ptr[1].String = (byte*)num;
|
||||
addon->FireCallback(2u, ptr);
|
||||
Marshal.FreeHGlobal(num);
|
||||
|
|
@ -141,8 +144,9 @@ internal sealed class ChocoboNameHandler : IDisposable
|
|||
|
||||
private unsafe static void ClickYes(AtkUnitBase* addon)
|
||||
{
|
||||
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
|
||||
AtkValue* ptr = stackalloc AtkValue[1];
|
||||
ptr->Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int;
|
||||
Unsafe.Write(&ptr->Type, (AtkValueType)3);
|
||||
ptr->Int = 0;
|
||||
addon->FireCallback(1u, ptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue