Fix MVP menu startup and mouse flow

This commit is contained in:
2026-05-18 22:14:17 -07:00
parent 5566d846e1
commit 3aac902142
10 changed files with 321 additions and 35 deletions
@@ -68,6 +68,7 @@ protected:
virtual void NativeConstruct() override;
virtual FReply NativeOnKeyDown(const FGeometry& InGeometry, const FKeyEvent& InKeyEvent) override;
virtual FReply NativeOnMouseButtonDown(const FGeometry& InGeometry, const FPointerEvent& InMouseEvent) override;
virtual int32 NativePaint(
const FPaintArgs& Args,
@@ -79,6 +80,12 @@ protected:
bool bParentEnabled) const override;
private:
bool GetPanelLayout(const FVector2D& WidgetSize, float& OutScale, FVector2D& OutPanelPosition, FVector2D& OutPanelSize) const;
bool IsPointInside(const FVector2D& Point, const FVector2D& Position, const FVector2D& Size) const;
void ContinueFromActiveScreen();
void ReturnFromActiveScreen();
void CompleteFrontendFlow();
void DrawMainMenu(
FSlateWindowElementList& OutDrawElements,
int32& LayerId,
@@ -112,6 +119,7 @@ private:
float Scale) const;
FText GetSelectedCharacterLabel() const;
FText GetSelectedRoleLabel() const;
void DrawTextAt(
FSlateWindowElementList& OutDrawElements,