fix: fly text atk arrays + offsets (#1523)

This commit is contained in:
Aireil 2023-11-10 21:03:28 +01:00 committed by GitHub
parent c03d6ff048
commit 4e1e9a0fce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,9 +86,9 @@ internal sealed class FlyTextGui : IDisposable, IServiceType, IFlyTextGui
public unsafe void AddFlyText(FlyTextKind kind, uint actorIndex, uint val1, uint val2, SeString text1, SeString text2, uint color, uint icon, uint damageTypeIcon) public unsafe void AddFlyText(FlyTextKind kind, uint actorIndex, uint val1, uint val2, SeString text1, SeString text2, uint color, uint icon, uint damageTypeIcon)
{ {
// Known valid flytext region within the atk arrays // Known valid flytext region within the atk arrays
var numIndex = 28; var numIndex = 30;
var strIndex = 25; var strIndex = 27;
var numOffset = 147u; var numOffset = 161u;
var strOffset = 28u; var strOffset = 28u;
// Get the UI module and flytext addon pointers // Get the UI module and flytext addon pointers
@ -132,7 +132,7 @@ internal sealed class FlyTextGui : IDisposable, IServiceType, IFlyTextGui
1, 1,
(IntPtr)numArray, (IntPtr)numArray,
numOffset, numOffset,
9, 10,
(IntPtr)strArray, (IntPtr)strArray,
strOffset, strOffset,
2, 2,