Space Plunder
Loading...
Searching...
No Matches
LevelSelectionSingleWidget.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
7#include "Data/MenuData.h"
8#include "LevelSelectionSingleWidget.generated.h"
9
13UCLASS()
14class MENUSYSTEM_API ULevelSelectionSingleWidget : public UUserWidget
15{
16 GENERATED_BODY()
17
18public:
19 void Setup(class ULevelSelectionWidget* Parent, const uint32 Index);
20
21 UFUNCTION(BlueprintCallable, Category="Menu System")
22 void SetAsSelected(const bool bIsSelected);
23
24 UFUNCTION(BlueprintCallable, Category="Menu System")
25 void SetGameLevelData(const FGameLevel& GameLevel);
26
27 UFUNCTION(BlueprintCallable, Category="Menu System")
28 void LevelSelectButtonClicked();
29
30 UFUNCTION(BlueprintPure, BlueprintCallable, Category="Menu System")
31 bool GetIsSelected() const {return bSelected;}
32 UFUNCTION(BlueprintPure, BlueprintCallable, Category="Menu System")
33 FGameLevel GetGameLevelData() const {return GameLevelData;}
34
35
36 UFUNCTION(BlueprintCallable, Category="Menu System")
37 void SetButtonFocus() const;
38
39 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
40 class UButton* LevelSelectButton;
41
42protected:
43 virtual bool Initialize() override;
44
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Menu System")
46 bool bShowDebugInfo = false;
47 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Menu System")
48 FLinearColor SelectedColor;
49
50 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
51 class UTextBlock* LevelNameText;
52 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
53 class UTextBlock* DescriptionText;
54 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
55 class UTextBlock* DebugText;
56 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
57 class UImage* LevelImage;
58
59
60private:
61 UPROPERTY()
62 class ULevelSelectionWidget* LevelSelectionWidget;
63 uint32 IndexNumber = 0;
64 FLinearColor DefaultColor;
65 bool bSelected = false;
66
67 FGameLevel GameLevelData;
68
69};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition LevelSelectionSingleWidget.h:15
Definition LevelSelectionWidget.h:21
Definition MenuData.h:115