38 #include "CoherentUIOptionsMenuControl.h"
39 #include "CoherentUIOptionsMenu.h"
40 #include "CoherentUIComponent.h"
41 #include "CoherentTArrayBinder.h"
42 #include "CoherentFStringBinder.h"
44 #include "Coherent/UI/View.h"
46 #include "CoherentUIOptionsMenuHelper.generated.h"
49 class UCoherentUIOptionsMenuHelper : public UObject
51 GENERATED_UCLASS_BODY()
54 UFUNCTION(BlueprintCallable, meta = (HidePin = "WorldContextObject",
55 DefaultToSelf = "WorldContextObject",
56 FriendlyName = "Setup Options Menu"),
57 Category = "Options Menu")
58 static UCoherentUIOptionsMenu* CreateOptionsMenu(
UCoherentBaseComponent* ViewComponent, TArray<FCoherentUIOptionsMenuControl> controls)
60 if (ViewComponent && ViewComponent->GetView())
62 UCoherentUIOptionsMenu* OptionsMenu = NewObject<UCoherentUIOptionsMenu>();
64 OptionsMenu->Initialize(ViewComponent, controls);
Definition: CoherentBaseComponent.h:76