From 59dc8decf8f803e7117702df6ea52ac327400e46 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 31 May 2019 19:58:00 +0100 Subject: [PATCH] Fixed issue with SImGuiLayout blocking mouse input for other Slate widgets, which was introduced by refactorization of widgets (version 1.14, commit c144658f): - Changed visibility of widgets in ImGui layout from 'Visible' to 'SelfHitTestInvisible'. --- CHANGES.md | 3 +++ README.md | 2 ++ Source/ImGui/Private/Widgets/SImGuiLayout.cpp | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 365e229..400d8ad 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,9 @@ Versions marked as 'unofficial' are labelled only for the needs of this changelo Change History -------------- +Version: 1.16 (2019/05) +- Fixed issue with SImGuiLayout blocking mouse input for other Slate widgets, which was introduced by refactorization of widgets (version 1.14, commit c144658f). + Version: 1.15 (2019/04) - Added new FImGuiDelegates interface for ImGui debug delegates. - Added code preserving delegates during hot-reloading and moving them to a new module. diff --git a/README.md b/README.md index a886ef7..eda87a3 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Dear ImGui simplifies and helps with creation of quality visualisation and debug Status ------ +Version: 1.16 + ImGui version: 1.65 Supported engine version: 4.22* diff --git a/Source/ImGui/Private/Widgets/SImGuiLayout.cpp b/Source/ImGui/Private/Widgets/SImGuiLayout.cpp index 59c5397..a33f0e4 100644 --- a/Source/ImGui/Private/Widgets/SImGuiLayout.cpp +++ b/Source/ImGui/Private/Widgets/SImGuiLayout.cpp @@ -26,11 +26,13 @@ void SImGuiLayout::Construct(const FArguments& InArgs) .IgnoreInheritedScale(true) .HAlign(HAlign_Fill) .VAlign(VAlign_Fill) + .Visibility(EVisibility::SelfHitTestInvisible) [ // Apply custom scale if necessary. // TODO: Bind to relevant parameter. SNew(SDPIScaler) .DPIScale(1.f) + .Visibility(EVisibility::SelfHitTestInvisible) [ SNew(SConstraintCanvas) + SConstraintCanvas::Slot() @@ -51,5 +53,7 @@ void SImGuiLayout::Construct(const FArguments& InArgs) ] ] ]; + + SetVisibility(EVisibility::SelfHitTestInvisible); } END_SLATE_FUNCTION_BUILD_OPTIMIZATION