14 class VEX_EXPORT DebugConsole {
16 static DebugConsole& Get() {
17 static DebugConsole instance;
23 static int TextEditCallbackStub(ImGuiInputTextCallbackData* data);
26 int TextEditCallback(ImGuiInputTextCallbackData* data);
35 void Draw(
bool* p_open,
bool isEditorMode);
37 using CommandFunc = std::function<void(
const std::vector<std::string>&)>;
46 void Execute(
const std::string& commandLine);
54 DebugConsole() =
default;
61 std::vector<LogEntry> m_logs;
62 std::map<std::string, CommandFunc> m_commands;
63 std::vector<std::string> m_history;
64 int m_historyPos = -1;
66 char m_inputBuf[256] = {0};
67 bool m_scrollToBottom =
true;