mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
GUI: TableSetupScrollFreeze() for log view
This commit is contained in:
parent
283d74c32f
commit
7905b813e0
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "gui.h"
|
||||
#include "../ta-log.h"
|
||||
#include <imgui.h>
|
||||
|
||||
const char* logLevels[5]={
|
||||
"ERROR",
|
||||
|
@ -41,6 +42,8 @@ void FurnaceGUI::drawLog() {
|
|||
ImGui::TableSetupColumn("c1",ImGuiTableColumnFlags_WidthFixed,levelChars);
|
||||
ImGui::TableSetupColumn("c2",ImGuiTableColumnFlags_WidthStretch);
|
||||
|
||||
ImGui::TableSetupScrollFreeze(0,1);
|
||||
|
||||
ImGui::TableNextRow(ImGuiTableRowFlags_Headers);
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted("time");
|
||||
|
|
Loading…
Reference in a new issue