You've already forked LuckyWorld
Rename entire project to LuckyWorldV2, including uproject file, folders and so on
This commit is contained in:
92
Source/LuckyWorldV2/Public/Menus/MainScreenUserWidget.h
Normal file
92
Source/LuckyWorldV2/Public/Menus/MainScreenUserWidget.h
Normal file
@ -0,0 +1,92 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Blueprint/UserWidget.h"
|
||||
#include "SharedDef.h"
|
||||
#include "MainScreenUserWidget.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class LUCKYWORLDV2_API UMainScreenUserWidget : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
protected:
|
||||
virtual void NativeConstruct() override;
|
||||
|
||||
public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
TArray<FRobotData> RobotDataList;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
TArray<FLevelData> LevelDataList;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int32 CurrentRobotIndex;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int32 CurrentLevelIndex;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int32 CurrentQualityIndex;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
bool bIsFullScreen = true;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
TSoftObjectPtr<UWorld> CurrentSelectLevelObject;
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void InitData();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void InitRobotData();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void InitLevelData();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
FRobotData GetCurrentRobotData() const;
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
FLevelData GetCurrentLevelData() const;
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectNextRobot();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectPreviousRobot();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectNextLevel();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectPreviousLevel();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectNextQuality();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectPreviousQuality();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void DoResolutionChange();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void GameStart();
|
||||
|
||||
void UpdateSelectRobot();
|
||||
void UpdateSelectLevel();
|
||||
void UpdateSelectQuality();
|
||||
|
||||
public:
|
||||
void OnMessageDispatchedHandler(const FString& Message);
|
||||
void DoSendReadyJson();
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPUpdateSelectRobot();
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPUpdateSelectLevel();
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPUpdateSelectQuality();
|
||||
};
|
Reference in New Issue
Block a user