27 lines
529 B
Java
27 lines
529 B
Java
|
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;
|
||
|
}
|
||
|
}
|