buildingmaker penmenu; resolving mouse click clash between world and UIs

This commit is contained in:
minjaesong
2019-02-16 17:11:36 +09:00
parent e06e9ef733
commit a3ef1b435d
14 changed files with 354 additions and 242 deletions

View File

@@ -269,6 +269,7 @@ public class AppLoader implements ApplicationListener {
public static int screenH = 0;
public static Texture textureWhiteSquare;
public static Texture textureWhiteCircle;
private void initViewPort(int width, int height) {
// Set Y to point downwards
@@ -506,19 +507,26 @@ public class AppLoader implements ApplicationListener {
}
IngameRenderer.INSTANCE.dispose();
PostProcessor.INSTANCE.dispose();
Terrarum.INSTANCE.dispose();
shaderBayerSkyboxFill.dispose();
shaderHicolour.dispose();
shaderPassthru.dispose();
shaderColLUT.dispose();
assetManager.dispose();
fullscreenQuad.dispose();
logoBatch.dispose();
fontGame.dispose();
fontSmallNumbers.dispose();
textureWhiteSquare.dispose();
textureWhiteCircle.dispose();
logo.getTexture().dispose();
ModMgr.INSTANCE.disposeMods();
// delete temp files
@@ -562,6 +570,8 @@ public class AppLoader implements ApplicationListener {
textureWhiteSquare = new Texture(Gdx.files.internal("assets/graphics/ortho_line_tex_2px.tga"));
textureWhiteSquare.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest);
textureWhiteCircle = new Texture(Gdx.files.internal("assets/graphics/circle_512.tga"));
TextureRegionPack.Companion.setGlobalFlipY(true);
fontGame = new GameFontBase("assets/graphics/fonts/terrarum-sans-bitmap", false, true,
Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest, false, 256, false