You've already forked LuckyWorld
Optimizing WB_MainScreen
This commit is contained in:
@ -10,6 +10,14 @@ void UMainScreenUserWidget::NativeConstruct()
|
||||
{
|
||||
Super::NativeConstruct();
|
||||
InitData();
|
||||
|
||||
BPSendReadyJson();
|
||||
BPGetdataHTTP();
|
||||
if (ULuckyRobotsGameInstance* GameInstance = Cast<ULuckyRobotsGameInstance>(GetGameInstance()))
|
||||
{
|
||||
GameInstance->bIsFirstOpenGame = false;
|
||||
GameInstance->DoResolutionChange(bIsFullScreen);
|
||||
}
|
||||
}
|
||||
|
||||
void UMainScreenUserWidget::InitData()
|
||||
|
@ -28,6 +28,12 @@ public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int32 CurrentQualityIndex;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
bool bIsFullScreen = true;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
TSoftObjectPtr<UWorld> CurrentSelectLevelObject;
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void InitData();
|
||||
@ -73,4 +79,8 @@ public:
|
||||
void BPUpdateSelectLevel();
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPUpdateSelectQuality();
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPSendReadyJson();
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPGetdataHTTP();
|
||||
};
|
||||
|
Reference in New Issue
Block a user