package io.gitlab.jfronny.inceptum.windows; import imgui.ImGui; import java.util.Set; public class LogWindow extends Window { private final Set source; public LogWindow(Set source) { super("Log"); this.source = source; } @Override public void draw() { source.forEach(ImGui::textUnformatted); if (ImGui.getScrollY() >= ImGui.getScrollMaxY()) ImGui.setScrollHereY(1.0f); } @Override public int getFlags() { return 0; } }