LEAP Documentation 40220
Documentation for the LEAP project
SubMenuWidget.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "SubMenuWidget.generated.h"
8
12UCLASS()
13class PROJECTX_API USubMenuWidget : public UAdvancedUserWidget
14{
15 GENERATED_UCLASS_BODY()
16
17
18public:
19 UFUNCTION(BlueprintCallable)
20 void SwitchMenuState(FName Type);
21
22protected:
23 UFUNCTION(BlueprintCallable, Category = SubMenu)
24 void AddSubMenu(FName NameID, UUserWidget* SubMenu);
25
26 UFUNCTION(BlueprintImplementableEvent)
27 bool SetSubMenus();
28
29 virtual void NativeConstruct() override;
30
31 UPROPERTY(BlueprintReadWrite, Category = MainMenuSubMenu)
32 TMap<FName, UUserWidget*> SubMenus;
33
34 FName CurrentMenu;
35
36};
37
38
Definition: AdvancedUserWidget.h:30
Definition: SubMenuWidget.h:14