From 308ab2d77b539315f362e598621dbc9433262a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Br=C3=BCckner?= Date: Mon, 27 Sep 2021 16:02:29 +0200 Subject: [PATCH] Add some tooltips to the debug console --- Sources/armory/trait/internal/DebugConsole.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/armory/trait/internal/DebugConsole.hx b/Sources/armory/trait/internal/DebugConsole.hx index f61cd689..1602a9b8 100755 --- a/Sources/armory/trait/internal/DebugConsole.hx +++ b/Sources/armory/trait/internal/DebugConsole.hx @@ -783,15 +783,19 @@ class DebugConsole extends Trait { final h = Id.handle(); h.selected = DebugConsole.traceWithPosition; DebugConsole.traceWithPosition = ui.check(h, "Print With Position"); + if (ui.isHovered) ui.tooltip("Whether to prepend the position of print/trace statements to the printed text"); if (ui.button("Clear")) { lastTraces[0] = ""; lastTraces.splice(1, lastTraces.length - 1); } + if (ui.isHovered) ui.tooltip("Clear the log output"); + final eh = ui.t.ELEMENT_H; ui.t.ELEMENT_H = ui.fontSize; for (t in lastTraces) ui.text(t); ui.t.ELEMENT_H = eh; + ui.unindent(); } }