This commit is contained in:
Alexandru Macocian
2026-03-05 11:13:38 +01:00
parent 59b1acf9df
commit 538e56d0a9
2 changed files with 3 additions and 8 deletions
+1 -5
View File
@@ -13,7 +13,7 @@ namespace Daybreak.API.Interop
{
/// <summary>
/// P/Invoke bindings for 546 C++ exports from gwca.dll (0 skipped).
/// P/Invoke bindings for 545 C++ exports from gwca.dll (0 skipped).
/// Nested classes mirror the C++ namespace hierarchy (e.g. GW::Agents → GWCA.GW.Agents).
/// Types annotated with [GWCAEquivalent] are used in signatures where available.
/// </summary>
@@ -952,10 +952,6 @@ public static unsafe partial class GWCA
[LibraryImport(DllName, EntryPoint = "?GetContainerDesiredHeight@FrameMgr@GW@@YAMPBUFrame@UI@2@@Z")]
public static partial float GetContainerDesiredHeight(global::Daybreak.API.Interop.Frame* frame);
// GW::FrameMgr::GetContainerDesiredWidth
[LibraryImport(DllName, EntryPoint = "?GetContainerDesiredWidth@FrameMgr@GW@@YAMPBUFrame@UI@2@@Z")]
public static partial float GetContainerDesiredWidth(global::Daybreak.API.Interop.Frame* frame);
// GW::FrameMgr::GetFrameScreenRect | screenPosition2: TODO: map struct GW::FrameMgr::ScreenPosition
// [LibraryImport(DllName, EntryPoint = "?GetFrameScreenRect@FrameMgr@GW@@YA_NPBUFrame@UI@2@PAUScreenPosition@12@@Z")]
// [return: MarshalAs(UnmanagedType.U1)]
+2 -3
View File
@@ -429,12 +429,11 @@ public sealed class PartyService : IHostedService
// Trigger the container's built-in layout handler to compute
// child sizes and stack them vertically before positioning.
var layoutResult = GWCA.GW.FrameMgr.LayoutContainer(floatingFrame);
var desiredW = GWCA.GW.FrameMgr.GetContainerDesiredWidth(floatingFrame);
var desiredH = GWCA.GW.FrameMgr.GetContainerDesiredHeight(floatingFrame);
scopedLogger.LogDebug(
"Post-layout: LayoutResult={layoutResult}, DesiredSize={w}x{h}",
layoutResult, desiredW, desiredH);
"Post-layout: LayoutResult={layoutResult}, DesiredHeight={h}",
layoutResult, desiredH);
// Dump frame position data after layout
var pos = &floatingFrame->Position;