Fix MVP menu startup and mouse flow
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user