mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
Fix
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user