47 lines
1.8 KiB
Java
47 lines
1.8 KiB
Java
package io.gitlab.jfronny.inceptum.frontend.gui.window;
|
|
|
|
import imgui.ImGui;
|
|
import io.gitlab.jfronny.inceptum.Inceptum;
|
|
import io.gitlab.jfronny.inceptum.util.MetaHolder;
|
|
import io.gitlab.jfronny.inceptum.util.Utils;
|
|
|
|
import java.net.URI;
|
|
import java.net.URISyntaxException;
|
|
|
|
public class AboutWindow extends Window {
|
|
public AboutWindow() {
|
|
super("About");
|
|
}
|
|
|
|
@Override
|
|
public void draw() {
|
|
ImGui.text("Inceptum " + MetaHolder.VERSION.version + " Copyright (C) 2021 JFronny");
|
|
ImGui.text("This program comes with ABSOLUTELY NO WARRANTY.");
|
|
ImGui.text("This is free software, and you are welcome to redistribute it under certain conditions.");
|
|
|
|
ImGui.separator();
|
|
|
|
if (!MetaHolder.VERSION.isPublic) ImGui.text("This is a custom build. No support will be provided");
|
|
else if (!MetaHolder.VERSION.jvm.equals(Runtime.version().feature())) ImGui.text("This build was designed for Java " + MetaHolder.VERSION.jvm + ", but you are using Java " + Runtime.version().feature() + ". No support will be provided");
|
|
else {
|
|
try {
|
|
ImGui.text("For support, you can head to my ");
|
|
ImGui.sameLine();
|
|
if (ImGui.button("Discord")) {
|
|
Utils.openWebBrowser(new URI("https://discord.gg/UjhHBqt"));
|
|
}
|
|
ImGui.sameLine();
|
|
ImGui.text("guild or");
|
|
ImGui.sameLine();
|
|
if (ImGui.button("Matrix")) {
|
|
Utils.openWebBrowser(new URI("https://matrix.to/#/%23jfronny%3Amatrix.org"));
|
|
}
|
|
ImGui.sameLine();
|
|
ImGui.text(" space");
|
|
} catch (URISyntaxException e) {
|
|
Inceptum.showError("Could not complete task", e);
|
|
}
|
|
}
|
|
}
|
|
}
|