mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed ImGui and added docking and viewport support
This commit is contained in:
@@ -5,3 +5,6 @@ Dependencies = {GlitchyEngine = "*", corlib = "*"}
|
||||
Name = "Sandbox"
|
||||
TargetType = "BeefGUIApplication"
|
||||
StartupObject = "GlitchyEngine.Program"
|
||||
|
||||
[Configs.Debug.Win64]
|
||||
CLibType = "DynamicDebug"
|
||||
|
||||
@@ -21,6 +21,19 @@ namespace Sandbox
|
||||
public override void OnEvent(Event event)
|
||||
{
|
||||
Log.ClientLogger.Trace("{}", event);
|
||||
|
||||
EventDispatcher dispatcher = scope EventDispatcher(event);
|
||||
|
||||
dispatcher.Dispatch<ImGuiRenderEvent>(scope (e) => OnImGuiRender(e));
|
||||
}
|
||||
|
||||
private bool OnImGuiRender(ImGuiRenderEvent e)
|
||||
{
|
||||
ImGui.ImGui.Begin("Test");
|
||||
|
||||
ImGui.ImGui.End();
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user