// @lint-ignore-every LICENSELINT // Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Framework/Commands/Commands.h" #include "OculusXRToolStyle.h" #include "OculusXREditorModule.h" #include "HAL/IConsoleManager.h" class FOculusToolCommands : public TCommands { public: FOculusToolCommands() : TCommands( TEXT("OculusTool"), NSLOCTEXT("Contexts", "OculusXREditor", "OculusXREditor Plugin"), NAME_None, FOculusToolStyle::GetStyleSetName()) , ShowOculusToolCommand( TEXT("vr.oculus.ShowToolWindow"), *NSLOCTEXT("OculusRift", "CCommandText_ShowToolWindow", "Show the Oculus Editor Tool window (editor only).") .ToString(), FConsoleCommandDelegate::CreateRaw(this, &FOculusToolCommands::ShowOculusTool)) { } // TCommands<> interface virtual void RegisterCommands() override; TSharedPtr OpenProjectSetupTool; TSharedPtr ToggleDeploySo; TSharedPtr OpenPlatWindow; TSharedPtr ToggleMetaXRSim; TSharedPtr LaunchGameRoom; TSharedPtr LaunchLivingRoom; TSharedPtr LaunchBedroom; TSharedPtr StopServer; private: void ShowOculusTool(); FAutoConsoleCommand ShowOculusToolCommand; };