Merge pull request #331 from ascclemens/update-pf

Add batch number to PF listing args
This commit is contained in:
goaaats 2021-04-21 20:00:43 +02:00 committed by GitHub
commit 62e44bf30f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -80,7 +80,7 @@ namespace Dalamud.Game.Internal.Gui {
}
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);
if (args.Visible) {
@ -112,6 +112,12 @@ namespace Dalamud.Game.Internal.Gui {
}
public class PartyFinderListingEventArgs {
public int BatchNumber { get; }
public bool Visible { get; set; } = true;
internal PartyFinderListingEventArgs(int batchNumber) {
BatchNumber = batchNumber;
}
}
}

View file

@ -16,7 +16,7 @@ namespace Dalamud.Game.Internal.Gui.Structs {
[StructLayout(LayoutKind.Sequential)]
public readonly struct Packet {
private readonly int unk0;
public readonly int batchNumber;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
private readonly byte[] padding1;