From 541f89b0b2e77236c7b93ce100e681a79b595a54 Mon Sep 17 00:00:00 2001 From: wyatt Date: Sat, 25 Oct 2025 02:52:36 +0800 Subject: [PATCH] =?UTF-8?q?if=E8=AF=AD=E5=8F=A5=E5=86=85=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20#9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 顺便把烦人的.user文件加入ignore --- .gitignore | 1 + BusyRabbit.uproject.DotSettings.user | 5 ----- Source/BusyRabbit/Private/Core/PW_UserWidget.cpp | 3 ++- Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 BusyRabbit.uproject.DotSettings.user diff --git a/.gitignore b/.gitignore index 9905b2e..ef71254 100644 --- a/.gitignore +++ b/.gitignore @@ -76,3 +76,4 @@ Plugins/**/Intermediate/* # Cache files for the editor to use DerivedDataCache/* +BusyRabbit.uproject.DotSettings.user diff --git a/BusyRabbit.uproject.DotSettings.user b/BusyRabbit.uproject.DotSettings.user deleted file mode 100644 index 9370ce5..0000000 --- a/BusyRabbit.uproject.DotSettings.user +++ /dev/null @@ -1,5 +0,0 @@ - - ForceIncluded - ForceIncluded - ForceIncluded - ForceIncluded \ No newline at end of file diff --git a/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp b/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp index 0b5ea01..0af8140 100644 --- a/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp +++ b/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp @@ -18,7 +18,8 @@ bool UPW_SimpleWidget::Initialize(){ void UPW_SimpleWidget::SetVisible(bool InVisible){ if (bVisible == InVisible) { return; } - if ((bVisible = InVisible)) { + bVisible = InVisible; + if (bVisible) { SetVisibility(ESlateVisibility::SelfHitTestInvisible); } else { diff --git a/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp b/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp index d762d0a..fb04099 100644 --- a/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp +++ b/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp @@ -131,10 +131,10 @@ void UPW_TableSwitcher::RebuildSwitcher(const TMap& I }); Widget->OnHoverStateChange.AddLambda([WeakThis](UPW_TableSwitcherWidget* SelectedWidget, bool IsHover) { - UPW_TableSwitcherWidget* TableWidget; + ; if (!WeakThis.IsValid()) return; for (UWidget* RawWidget : WeakThis->SwitcherBar->GetAllChildren()) { - if ((TableWidget = Cast(RawWidget))) { + if (UPW_TableSwitcherWidget* TableWidget = Cast(RawWidget)) { TableWidget->SetHoveredState(false); } }