-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
701bcc3
commit 9c67cd7
Showing
81 changed files
with
408 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using UnrealBuildTool; | ||
|
||
public class ImGui_UnrealLayout : ModuleRules | ||
{ | ||
public ImGui_UnrealLayout(ReadOnlyTargetRules Target) : base(Target) | ||
{ | ||
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; | ||
|
||
PublicDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"Core", | ||
} | ||
); | ||
|
||
PrivateDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"CoreUObject", | ||
"Engine", | ||
"Slate", | ||
"SlateCore", | ||
|
||
"ImGui", | ||
} | ||
); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
46 changes: 46 additions & 0 deletions
46
Source/ImGui_UnrealLayout/Private/ImGui_UnrealLayoutModule.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#include "ImGui_UnrealLayoutModule.h" | ||
|
||
#include "ImGuiEditorDefaultLayout.h" | ||
#include "ImGuiUnrealContextManager.h" | ||
#include "Engine/Engine.h" | ||
#include "Misc/CoreDelegates.h" | ||
|
||
#define LOCTEXT_NAMESPACE "FImGui_UnrealLayoutModule" | ||
|
||
void FImGui_UnrealLayoutModule::StartupModule() | ||
{ | ||
#if WITH_EDITOR | ||
FCoreDelegates::OnPostEngineInit.AddLambda([] | ||
{ | ||
UImGuiUnrealContextManager* Manager = GEngine->GetEngineSubsystem<UImGuiUnrealContextManager>(); | ||
if (Manager == nullptr) | ||
{ | ||
return; | ||
} | ||
if (Manager->EditorDrawer) | ||
{ | ||
return; | ||
} | ||
Manager->EditorDrawer = [](float DeltaSeconds) | ||
{ | ||
static UImGuiEditorDefaultDebugger* DefaultDebugger = [] | ||
{ | ||
UImGuiEditorDefaultDebugger* Debugger = NewObject<UImGuiEditorDefaultDebugger>(); | ||
Debugger->AddToRoot(); | ||
Debugger->Register(); | ||
return Debugger; | ||
}(); | ||
DefaultDebugger->Draw(DeltaSeconds); | ||
}; | ||
}); | ||
#endif | ||
} | ||
|
||
void FImGui_UnrealLayoutModule::ShutdownModule() | ||
{ | ||
|
||
} | ||
|
||
#undef LOCTEXT_NAMESPACE | ||
|
||
IMPLEMENT_MODULE(FImGui_UnrealLayoutModule, ImGui_UnrealLayout) |
File renamed without changes.
Oops, something went wrong.