Add option to limit the amount of shown log lines

This commit is contained in:
Harold Iedema
2024-04-18 16:13:46 +02:00
parent 04b1063972
commit e0793a51da
7 changed files with 80 additions and 29 deletions
+9
View File
@@ -234,6 +234,15 @@ internal static class ImGuiUtil {
return r;
}
internal static bool InputIntVertical(string label, string description, ref int value, int step = 1, int stepFast = 100, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) {
ImGui.TextUnformatted(label);
ImGui.SetNextItemWidth(-1);
var r = ImGui.InputInt($"##{label}", ref value, step, stepFast, flags);
HelpText(description);
return r;
}
internal static bool CtrlShiftButton(string label, string tooltip = "")
{
var io = ImGui.GetIO();