Skip to content

Commit 03adc96

Browse files
committed
logger gui improvements
1 parent b4fb18a commit 03adc96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/com/lambda/interaction/request/DebugLogger.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ abstract class DebugLogger(
6767
override fun ImGuiBuilder.buildLayout() {
6868
ImGui.setNextWindowSizeConstraints(300f, 400f, windowViewport.workSizeX, windowViewport.workSizeY)
6969
ImGui.setNextWindowBgAlpha(backgroundAlpha)
70-
window(name, flags = ImGuiWindowFlags.NoTitleBar) {
70+
window(name, flags = ImGuiWindowFlags.NoCollapse) {
7171
val noScroll = if (autoScroll) ImGuiWindowFlags.NoScrollbar or ImGuiWindowFlags.NoScrollWithMouse else 0
72-
child("Log Content", extraFlags = noScroll) {
72+
button("Clear") { clear() }
73+
child("Log Content", extraFlags = noScroll) {
7374
if (wrapText) ImGui.pushTextWrapPos()
7475

7576
logs.forEach { logEntry ->
@@ -92,7 +93,6 @@ abstract class DebugLogger(
9293
ImGui.setScrollHereY(1f)
9394
}
9495
}
95-
button("Clear") { clear() }
9696
}
9797
}
9898

0 commit comments

Comments
 (0)