mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 16:30:32 +00:00
209a594616
- Removed ImGui Module Properties singleton interface and released construction constraints. - Added ImGui Module Properties to ImGui Module Manager. - Moved ImGui Demo to ImGui Module Manager. - ImGui Demo and ImGui Module Commands keep reference to ImGui Module Manager that gives them access to properties.
33 lines
563 B
C++
33 lines
563 B
C++
// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
|
|
|
|
#pragma once
|
|
|
|
#include <imgui.h>
|
|
|
|
class FImGuiModuleManager;
|
|
|
|
// Widget drawing ImGui demo.
|
|
class FImGuiDemo
|
|
{
|
|
public:
|
|
|
|
FImGuiDemo(FImGuiModuleManager& InModuleManager)
|
|
: ModuleManager(InModuleManager)
|
|
{
|
|
}
|
|
|
|
void DrawControls(int32 ContextIndex);
|
|
|
|
private:
|
|
|
|
FImGuiModuleManager& ModuleManager;
|
|
|
|
ImVec4 ClearColor = ImColor{ 114, 144, 154 };
|
|
|
|
int32 ShowDemoWindowMask = 0;
|
|
int32 ShowAnotherWindowMask = 0;
|
|
|
|
int32 DemoWindowCounter = 0;
|
|
uint32 LastDemoWindowFrameNumber = 0;
|
|
};
|