From 1c237dd6c3aecfbda9f57d9e1bd5dffc7a1cfbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Br=C3=BCckner?= Date: Mon, 27 Sep 2021 15:46:35 +0200 Subject: [PATCH] Make printing with PosInfos configurable in the debug console UI --- Sources/armory/trait/internal/DebugConsole.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/armory/trait/internal/DebugConsole.hx b/Sources/armory/trait/internal/DebugConsole.hx index 72f0e447..5bb33454 100755 --- a/Sources/armory/trait/internal/DebugConsole.hx +++ b/Sources/armory/trait/internal/DebugConsole.hx @@ -779,6 +779,11 @@ class DebugConsole extends Trait { #end if (ui.panel(Id.handle({selected: true}), "Log")) { ui.indent(); + + final h = Id.handle(); + h.selected = DebugConsole.traceWithPosition; + DebugConsole.traceWithPosition = ui.check(h, "Print With Position"); + if (ui.button("Clear")) { lastTraces[0] = ""; lastTraces.splice(1, lastTraces.length - 1);