Inceptum/src/main/java/io/gitlab/jfronny/inceptum/windows/LogWindow.java

27 lines
529 B
Java
Raw Normal View History

2021-10-29 22:50:42 +02:00
package io.gitlab.jfronny.inceptum.windows;
import imgui.ImGui;
import java.util.Set;
public class LogWindow extends Window {
private final Set<String> source;
public LogWindow(Set<String> 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;
}
}