Made unicode plane work and reversted loading screen
This commit is contained in:
parent
5dfd954db1
commit
5679699282
5 changed files with 25 additions and 6 deletions
|
|
@ -105,7 +105,10 @@ public class GDXAppVrGem4Activator implements BundleActivator {
|
|||
Gdx.app.postRunnable(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
imguiSetup.init(fonts, v -> logger.info(imguiSetup, v));
|
||||
imguiSetup.init(fonts, v -> {
|
||||
logger.info(imguiSetup, v);
|
||||
bootScreen.bootLine(v);
|
||||
});
|
||||
imLoaded.set(true);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public class GDXAppVrGem4BootScreen extends ScreenAdapter implements GDXAppVrGem
|
|||
|
||||
public void create() {
|
||||
batch = new SpriteBatch();
|
||||
backgroundImage = new Texture(Gdx.files.internal("background/temple-os.png"));
|
||||
backgroundImage = new Texture(Gdx.files.internal("background/gdxapp-loading.png"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -31,11 +31,16 @@ public class GDXAppVrGem4BootScreen extends ScreenAdapter implements GDXAppVrGem
|
|||
int textY = Gdx.graphics.getHeight();
|
||||
int textYStep = 20;
|
||||
batch.begin();
|
||||
batch.draw(backgroundImage, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
|
||||
synchronized (messages) {
|
||||
for (String message:messages) {
|
||||
int start = 0;
|
||||
if (messages.size() > 33) {
|
||||
start = messages.size() - 33;
|
||||
}
|
||||
List<String> part = messages.subList(start, messages.size());
|
||||
for (String message:part) {
|
||||
font.draw(batch, message, textX, textY-=textYStep);
|
||||
}
|
||||
batch.draw(backgroundImage, 200, textY, Gdx.graphics.getWidth() - 200, Gdx.graphics.getHeight() - textY);
|
||||
}
|
||||
batch.end();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import imgui.ImFontGlyphRangesBuilder;
|
|||
import imgui.ImGui;
|
||||
import imgui.ImGuiIO;
|
||||
import imgui.ImGuiStyle;
|
||||
import imgui.flag.ImGuiBackendFlags;
|
||||
import imgui.gl3.ImGuiImplGl3;
|
||||
import imgui.glfw.ImGuiImplGlfw;
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
|
|
@ -36,6 +37,7 @@ public class ImGuiSetup {
|
|||
imGuiImp.init(windowHandle, true);
|
||||
imGuiGlImp.init("#version 140");
|
||||
ImGui.getIO().setIniFilename(null);
|
||||
ImGui.getIO().setBackendFlags(ImGuiBackendFlags.RendererHasVtxOffset);
|
||||
ImGui.init();
|
||||
initStyle();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue