mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 15:03:01 +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 "gui.h"
|
||||||
#include "../ta-log.h"
|
#include "../ta-log.h"
|
||||||
|
#include <imgui.h>
|
||||||
|
|
||||||
const char* logLevels[5]={
|
const char* logLevels[5]={
|
||||||
"ERROR",
|
"ERROR",
|
||||||
|
@ -41,6 +42,8 @@ void FurnaceGUI::drawLog() {
|
||||||
ImGui::TableSetupColumn("c1",ImGuiTableColumnFlags_WidthFixed,levelChars);
|
ImGui::TableSetupColumn("c1",ImGuiTableColumnFlags_WidthFixed,levelChars);
|
||||||
ImGui::TableSetupColumn("c2",ImGuiTableColumnFlags_WidthStretch);
|
ImGui::TableSetupColumn("c2",ImGuiTableColumnFlags_WidthStretch);
|
||||||
|
|
||||||
|
ImGui::TableSetupScrollFreeze(0,1);
|
||||||
|
|
||||||
ImGui::TableNextRow(ImGuiTableRowFlags_Headers);
|
ImGui::TableNextRow(ImGuiTableRowFlags_Headers);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextUnformatted("time");
|
ImGui::TextUnformatted("time");
|
||||||
|
|
Loading…
Reference in a new issue