@ -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 {
|
||||
|
||||
@ -131,10 +131,10 @@ void UPW_TableSwitcher::RebuildSwitcher(const TMap<FName, FTableSwitcherInfo>& 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<UPW_TableSwitcherWidget>(RawWidget))) {
|
||||
if (UPW_TableSwitcherWidget* TableWidget = Cast<UPW_TableSwitcherWidget>(RawWidget)) {
|
||||
TableWidget->SetHoveredState(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user