You've already forked LuckyWorld
Optimize some UI
This commit is contained in:
@ -84,13 +84,10 @@ void UCaptureSettingsUserWidget::ToggleRandomPannel()
|
||||
ULuckyRobotsGameInstance* GameInstance = Cast<ULuckyRobotsGameInstance>(GetGameInstance());
|
||||
if (GameInstance)
|
||||
{
|
||||
GameInstance->bIsRandomPannel = !GameInstance->bIsRandomPannel;
|
||||
if (GameInstance->bIsRandomPannel)
|
||||
auto UISubsystem = GetGameInstance()->GetSubsystem<UUISubsystem>();
|
||||
if (UISubsystem)
|
||||
{
|
||||
if (GameInstance->GameUserWidget && GameInstance->GameUserWidget->GetAllRandomUserWidget())
|
||||
{
|
||||
GameInstance->GameUserWidget->GetAllRandomUserWidget()->DoOpen();
|
||||
}
|
||||
UISubsystem->OnAllRandomMenuStateChanged.Broadcast(!GameInstance->bIsRandomPannel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user