mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 16:30:32 +00:00
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
|
|
|
|
#pragma once
|
|
|
|
#include <IConsoleManager.h>
|
|
|
|
|
|
// Wrapper for ImGui console commands.
|
|
class FImGuiModuleCommands
|
|
{
|
|
// Allow module manager to control life-cycle of this class.
|
|
friend class FImGuiModuleManager;
|
|
|
|
FImGuiModuleCommands();
|
|
~FImGuiModuleCommands();
|
|
|
|
FImGuiModuleCommands(const FImGuiModuleCommands&) = delete;
|
|
FImGuiModuleCommands& operator=(const FImGuiModuleCommands&) = delete;
|
|
|
|
FImGuiModuleCommands(FImGuiModuleCommands&&) = delete;
|
|
FImGuiModuleCommands& operator=(FImGuiModuleCommands&&) = delete;
|
|
|
|
void InitializeSettings();
|
|
|
|
void RegisterSettingsDelegates();
|
|
void UnregisterSettingsDelegates();
|
|
|
|
void UpdateToggleInputKeyBinding();
|
|
|
|
void ToggleInput();
|
|
void ToggleKeyboardNavigation();
|
|
void ToggleGamepadNavigation();
|
|
void ToggleDemo();
|
|
|
|
FAutoConsoleCommand ToggleInputCommand;
|
|
FAutoConsoleCommand ToggleKeyboardNavigationCommand;
|
|
FAutoConsoleCommand ToggleGamepadNavigationCommand;
|
|
FAutoConsoleCommand ToggleDemoCommand;
|
|
};
|