mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
feat: add batch number to pf listing args
This commit is contained in:
parent
de98b75336
commit
c5037ee9b7
2 changed files with 8 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ namespace Dalamud.Game.Internal.Gui {
|
||||||
}
|
}
|
||||||
|
|
||||||
var listing = new PartyFinderListing(packet.listings[i], Dalamud.Data, Dalamud.SeStringManager);
|
var listing = new PartyFinderListing(packet.listings[i], Dalamud.Data, Dalamud.SeStringManager);
|
||||||
var args = new PartyFinderListingEventArgs();
|
var args = new PartyFinderListingEventArgs(packet.batchNumber);
|
||||||
ReceiveListing?.Invoke(listing, args);
|
ReceiveListing?.Invoke(listing, args);
|
||||||
|
|
||||||
if (args.Visible) {
|
if (args.Visible) {
|
||||||
|
|
@ -112,6 +112,12 @@ namespace Dalamud.Game.Internal.Gui {
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PartyFinderListingEventArgs {
|
public class PartyFinderListingEventArgs {
|
||||||
|
public int BatchNumber { get; }
|
||||||
|
|
||||||
public bool Visible { get; set; } = true;
|
public bool Visible { get; set; } = true;
|
||||||
|
|
||||||
|
internal PartyFinderListingEventArgs(int batchNumber) {
|
||||||
|
BatchNumber = batchNumber;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Dalamud.Game.Internal.Gui.Structs {
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public readonly struct Packet {
|
public readonly struct Packet {
|
||||||
private readonly int unk0;
|
public readonly int batchNumber;
|
||||||
|
|
||||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
|
||||||
private readonly byte[] padding1;
|
private readonly byte[] padding1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue