mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 16:30:32 +00:00
c5f3759664
- Moved property variables to ImGui Module Properties. - Moved console command to ImGui Module Commands (one for now but more will be added). - ImGui Module Commands is created by ImGui Module Manager, what means that commands are registered after module is loaded and unregistered when it is unloaded. - Updated settings to allow more convenient use: Added global pointer to default object and event raised when it is loaded.
36 lines
863 B
C++
36 lines
863 B
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();
|
|
|
|
// Disable copy semantics.
|
|
FImGuiModuleCommands(const FImGuiModuleCommands&) = default;
|
|
FImGuiModuleCommands& operator=(const FImGuiModuleCommands&) = default;
|
|
|
|
// Disable move semantics.
|
|
FImGuiModuleCommands(FImGuiModuleCommands&&) = default;
|
|
FImGuiModuleCommands& operator=(FImGuiModuleCommands&&) = default;
|
|
|
|
void InitializeSettings();
|
|
|
|
void RegisterSettingsDelegates();
|
|
void UnregisterSettingsDelegates();
|
|
|
|
void UpdateToggleInputKeyBinding();
|
|
|
|
void ToggleInput();
|
|
|
|
FAutoConsoleCommand ToggleInputCommand;
|
|
};
|