aboutsummaryrefslogtreecommitdiff
path: root/Plugins/SimpleUGC/Source/SimpleUGCEditor/Public/SimpleUGCEditorCommands.h
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/SimpleUGC/Source/SimpleUGCEditor/Public/SimpleUGCEditorCommands.h')
-rw-r--r--Plugins/SimpleUGC/Source/SimpleUGCEditor/Public/SimpleUGCEditorCommands.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Plugins/SimpleUGC/Source/SimpleUGCEditor/Public/SimpleUGCEditorCommands.h b/Plugins/SimpleUGC/Source/SimpleUGCEditor/Public/SimpleUGCEditorCommands.h
new file mode 100644
index 0000000..247340c
--- /dev/null
+++ b/Plugins/SimpleUGC/Source/SimpleUGCEditor/Public/SimpleUGCEditorCommands.h
@@ -0,0 +1,27 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#pragma once
+
+#include "CoreMinimal.h"
+#include "Framework/Commands/Commands.h"
+#include "SimpleUGCEditorStyle.h"
+
+class FSimpleUGCEditorCommands : public TCommands<FSimpleUGCEditorCommands>
+{
+public:
+
+ FSimpleUGCEditorCommands()
+ : TCommands<FSimpleUGCEditorCommands>(TEXT("SimpleUGCEditor"), NSLOCTEXT("Contexts", "SimpleUGCEditor", "SimpleUGCEditor Plugin"), NAME_None, FSimpleUGCEditorStyle::GetStyleSetName())
+ {
+ }
+
+ // TCommands<> interface
+ virtual void RegisterCommands() override;
+
+ TArray<TSharedPtr<FUICommandInfo>> RegisterUGCCommands(const TArray<TSharedRef<class IPlugin>>& UGCList) const;
+ void UnregisterUGCCommands(TArray<TSharedPtr<FUICommandInfo>>& UICommands) const;
+
+public:
+ TSharedPtr< FUICommandInfo > CreateUGCAction;
+ TSharedPtr< FUICommandInfo > PackageUGCAction;
+}; \ No newline at end of file