From beb6c31c9ff5e352f6ed787f0ede58d7d95aca46 Mon Sep 17 00:00:00 2001 From: Kakarot Date: Thu, 3 Dec 2026 02:18:59 -0600 Subject: [PATCH] Library filter toggles use the radio buttons the other Mantle panels use They asked for the button style "ToggleButton" as a checkbox style: the engine logged an error for each and they drew as blank gray squares. Co-Authored-By: Claude Sonnet 5.5 --- Source/MantleEditor/Private/MantleLibraryPanel.cpp | 3 ++- Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/MantleEditor/Private/MantleLibraryPanel.cpp b/Source/MantleEditor/Private/MantleLibraryPanel.cpp index bfb98a70..87c43723 100644 --- a/Source/MantleEditor/Private/MantleLibraryPanel.cpp +++ b/Source/MantleEditor/Private/MantleLibraryPanel.cpp @@ -659,7 +659,8 @@ SMantleLibraryPanel::~SMantleLibraryPanel() TSharedRef SMantleLibraryPanel::MakeToggle(const FText& Label, TFunction IsOn, TFunction OnPicked, const FText& Tooltip) { return SNew(SCheckBox) - .Style(&FAppStyle::Get().GetWidgetStyle("ToggleButton")) + // One of a row is picked: the radio buttons the other Mantle panels use. + .Style(&FAppStyle::Get().GetWidgetStyle("RadioButton")) .ToolTipText(Tooltip) .IsChecked_Lambda([IsOn] { return IsOn() ? ECheckBoxState::Checked : ECheckBoxState::Unchecked; }) .OnCheckStateChanged_Lambda([OnPicked](ECheckBoxState State) diff --git a/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp b/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp index 20d12cac..5225a839 100644 --- a/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp +++ b/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp @@ -49,8 +49,6 @@ bool FMantleLibraryAddRoutesTest::RunTest(const FString& Parameters) { return false; } - // The panel's filter toggles ask for a style of another type and the engine says so for each (older than this test). - AddExpectedErrorPlain(TEXT("The Slate Widget Style 'ToggleButton' is not of the desired type"), EAutomationExpectedErrorFlags::Contains, 0); const TSharedRef Panel = SNew(SMantleLibraryPanel); const auto MakeCard = [](const int32 Number, const TCHAR* Kind, const TCHAR* Name) {