mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
st/gui: Add a special UI for setting log level vars
This commit is contained in:
parent
20501b8e58
commit
ad266672f4
|
@ -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,
|
igDragScalar(name, ImGuiDataType_U8, ptr, drag_speed, NULL,
|
||||||
NULL, NULL, power);
|
NULL, NULL, power);
|
||||||
break;
|
break;
|
||||||
case U_VAR_KIND_LOG_LEVEL:
|
|
||||||
case U_VAR_KIND_I32:
|
case U_VAR_KIND_I32:
|
||||||
igInputInt(name, (int *)ptr, 1, 10, i_flags);
|
igInputInt(name, (int *)ptr, 1, 10, i_flags);
|
||||||
break;
|
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);
|
handle_draggable_quat(text, &pose->orientation);
|
||||||
break;
|
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_TEXT: igText("%s: '%s'", name, (char *)ptr); break;
|
||||||
case U_VAR_KIND_RO_I32:
|
case U_VAR_KIND_RO_I32:
|
||||||
igInputScalar(name, ImGuiDataType_S32, ptr, NULL, NULL, NULL,
|
igInputScalar(name, ImGuiDataType_S32, ptr, NULL, NULL, NULL,
|
||||||
|
|
Loading…
Reference in a new issue