Console wip

This commit is contained in:
Henrik Rydgård committed 2025-03-27 08:59:38 +01:00
1 parent d0e60e5b06
commit 2d69d78e71
4 files changed
+35 -54

No files matched your search

+2 -2
View File
@@ -17,7 +17,6 @@ ImConsole::ImConsole() {
Commands.push_back("HELP");
Commands.push_back("HISTORY");
Commands.push_back("CLEAR");
Commands.push_back("CLASSIFY");
AutoScroll = true;
ScrollToBottom = false;
AddLog("Welcome to Dear ImGui!");
@@ -27,6 +26,7 @@ ImConsole::~ImConsole() {
ClearLog();
for (int i = 0; i < History.Size; i++)
ImGui::MemFree(History[i]);
AddLog("# Enter 'HELP' for help.");
}
// Portable helpers
@@ -90,7 +90,7 @@ void ImConsole::Draw(ImConfig &cfg) {
}
// Options, Filter
ImGui::SetNextItemShortcut(ImGuiMod_Ctrl | ImGuiKey_O, ImGuiInputFlags_Tooltip);
//ImGui::SetNextItemShortcut(ImGuiMod_Ctrl | ImGuiKey_O, ImGuiInputFlags_Tooltip);
if (ImGui::Button("Options"))
ImGui::OpenPopup("Options");
ImGui::SameLine();