From ad266672f4a46bac43ecbcd56a3680a8372541b7 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 3 Jul 2020 19:26:45 +0100 Subject: [PATCH] st/gui: Add a special UI for setting log level vars --- src/xrt/state_trackers/gui/gui_scene_debug.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/gui/gui_scene_debug.c b/src/xrt/state_trackers/gui/gui_scene_debug.c index 5a2b24121..4376d6179 100644 --- a/src/xrt/state_trackers/gui/gui_scene_debug.c +++ b/src/xrt/state_trackers/gui/gui_scene_debug.c @@ -184,7 +184,6 @@ on_elem(const char *name, enum u_var_kind kind, void *ptr, void *priv) igDragScalar(name, ImGuiDataType_U8, ptr, drag_speed, NULL, NULL, NULL, power); break; - case U_VAR_KIND_LOG_LEVEL: case U_VAR_KIND_I32: igInputInt(name, (int *)ptr, 1, 10, i_flags); break; @@ -249,6 +248,10 @@ on_elem(const char *name, enum u_var_kind kind, void *ptr, void *priv) handle_draggable_quat(text, &pose->orientation); break; } + case U_VAR_KIND_LOG_LEVEL: + igComboStr(name, (int *)ptr, + "Trace\0Debug\0Info\0Warn\0Error\0\0", 5); + break; case U_VAR_KIND_RO_TEXT: igText("%s: '%s'", name, (char *)ptr); break; case U_VAR_KIND_RO_I32: igInputScalar(name, ImGuiDataType_S32, ptr, NULL, NULL, NULL,