38 #include "CoherentBaseComponent.h"
39 #include "CoherentUIMenuInfo.h"
41 #include "CoherentUIMenu.generated.h"
43 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FMenuButtonClicked, FString, ButtonID);
44 DECLARE_DYNAMIC_MULTICAST_DELEGATE(FCoherentMenuReady);
46 UCLASS(MinimalAPI, BlueprintType, Blueprintable)
47 class UCoherentUIMenu : public UObject
49 GENERATED_UCLASS_BODY()
52 UFUNCTION(BlueprintCallable, meta = (HidePin = "WorldContextObject",
53 DefaultToSelf = "WorldContextObject",
54 FriendlyName = "Show Menu"),
58 UFUNCTION(BlueprintCallable, meta = (HidePin = "WorldContextObject",
59 DefaultToSelf = "WorldContextObject",
60 FriendlyName = "Hide Menu"),
68 UPROPERTY(BlueprintAssignable, meta = (HidePin = "WorldContextObject",
69 DefaultToSelf = "WorldContextObject",
70 FriendlyName = "On Menu Button Clicked"),
72 FMenuButtonClicked MenuButtonClicked;
75 FCoherentUIMenuInfo MenuInfo;
77 FCoherentMenuReady MenuReady;
81 void OnReadyForScripting(int32 FrameId, const FString& Path,
bool IsMainFrame);
83 void OnBindingsReleased(int32 FrameId, const FString& Path,
bool IsMainFrame);
85 void HideMenuWhenReady();
87 void ShowMenuWhenReady();
89 void SetupScripting(Coherent::UI::View* View);
90 void OnMenuButtonClicked(const FString& MenuID, const FString& ButtonID);
92 static TSet<uint32> IsMenuReady;
Definition: CoherentBaseComponent.h:76