You've already forked LuckyWorld
Update
This commit is contained in:
@ -15,7 +15,9 @@ UCLASS()
|
||||
class LUCKYROBOTS_API UMainScreenUserWidget : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
protected:
|
||||
virtual void NativeConstruct();
|
||||
|
||||
public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
|
||||
UDataTable* RobotDataDataTable;
|
||||
@ -34,6 +36,10 @@ public:
|
||||
int iCurrentSelectRobot;
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int iCurrentSelectLevel;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int iCurrentSelectQuality;
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void InitData();
|
||||
@ -45,9 +51,34 @@ public:
|
||||
FRobotData GetCurrentRobotData();
|
||||
UFUNCTION(BlueprintCallable)
|
||||
FLevelData GetCurrentLevelData();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectNextRobot();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectPreviousRobot();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectNextLevel();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectPreviousLevel();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectNextQuality();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SelectPreviousQuality();
|
||||
|
||||
void UpdateSelectRobot();
|
||||
void UpdateSelectLevel();
|
||||
void UpdateSelectQuality();
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPUpdateSelectRobot();
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPUpdateSelectLevel();
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void BPUpdateSelectQuality();
|
||||
};
|
||||
|
Reference in New Issue
Block a user