mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Seems we need to SynchronizeProperties more often to make sure slate widgets get style
This commit is contained in:
parent
7baf07f29b
commit
c0650d2c09
@ -42,7 +42,9 @@ void UOptionWidgetBase::NativeConstruct()
|
||||
if (!GamepadDownImage)
|
||||
UE_LOG(LogStevesUI, Error, TEXT("%s should have a GamepadDownImage instance."), *this->GetClass()->GetName());
|
||||
|
||||
|
||||
|
||||
SynchronizeProperties();
|
||||
|
||||
// To support option set up in designer
|
||||
SetSelectedIndex(SelectedIndex);
|
||||
}
|
||||
@ -167,6 +169,9 @@ void UOptionWidgetBase::SetMouseMode()
|
||||
}
|
||||
|
||||
MouseVersion->SetVisibility(ESlateVisibility::Visible);
|
||||
|
||||
SynchronizeProperties();
|
||||
|
||||
if (bHadFocus)
|
||||
SetFocusProperly();
|
||||
|
||||
@ -182,6 +187,9 @@ void UOptionWidgetBase::SetButtonMode()
|
||||
MouseVersion->SetVisibility(ESlateVisibility::Hidden);
|
||||
|
||||
GamepadVersion->SetVisibility(ESlateVisibility::Visible);
|
||||
|
||||
SynchronizeProperties();
|
||||
|
||||
if (bHadFocus)
|
||||
SetFocusProperly();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user