39 #include "CoherentBaseComponent.h"
40 #include "CoherentUIOptionsMenuControl.h"
42 #include "CoherentUIOptionsMenu.generated.h"
45 USTRUCT(Blueprintable)
46 struct FCoherentUISavedOptions
48 GENERATED_USTRUCT_BODY()
51 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Menu Options")
55 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Menu Options")
59 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Menu Options")
63 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FCoherentOptionsSaved, const TArray<FCoherentUISavedOptions>&, SavedOptions);
65 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FCoherentOptionSaved, TArray<int32>, SavedOption);
67 DECLARE_DYNAMIC_MULTICAST_DELEGATE(FCoherentOptionsDiscarded);
69 UCLASS(MinimalAPI, BlueprintType, Blueprintable)
70 class UCoherentUIOptionsMenu : public UObject
72 GENERATED_UCLASS_BODY()
79 void OnReadyForScripting(int32 FrameId, const FString& Path,
bool IsMainFrame);
81 UPROPERTY(BlueprintAssignable, meta = (HidePin = "WorldContextObject",
82 DefaultToSelf = "WorldContextObject",
83 FriendlyName = "On Options Save"),
85 FCoherentOptionsSaved OnMenuOptionsSaved;
87 UPROPERTY(BlueprintAssignable, meta = (HidePin = "WorldContextObject",
88 DefaultToSelf = "WorldContextObject",
89 FriendlyName = "On Options Save"),
91 FCoherentOptionSaved OnTestMenuOptionSaved;
93 UPROPERTY(BlueprintAssignable, meta = (HidePin = "WorldContextObject",
94 DefaultToSelf = "WorldContextObject",
95 FriendlyName = "On Options Discarded"),
97 FCoherentOptionsDiscarded OnMenuOptionsDiscarded;
100 void OnOptionsSaved(TArray<FCoherentUISavedOptions> savedOptions);
101 void OnOptionsDiscarded();
103 void SetupScripting(Coherent::UI::View* View);
105 TArray<FCoherentUIOptionsMenuControl> Controls;
Definition: CoherentBaseComponent.h:76