3 screens impl of inventory UI wip

This commit is contained in:
minjaesong
2019-01-29 20:24:11 +09:00
parent 9373feff34
commit 69e9fa4b0f
8 changed files with 162 additions and 85 deletions

View File

@@ -234,7 +234,7 @@ object Terrarum : Screen {
// setting environment as MOBILE precedes this code
if (environment != RunningEnvironment.MOBILE) {
//if (environment != RunningEnvironment.MOBILE) {
environment = try {
Controllers.getController(0) // test if controller exists
if (getConfigString("pcgamepadenv") == "console")
@@ -245,7 +245,7 @@ object Terrarum : Screen {
catch (e: IndexOutOfBoundsException) {
RunningEnvironment.PC
}
}
//}
}
@@ -270,11 +270,6 @@ object Terrarum : Screen {
val MINIMAL_GL_MAX_TEXTURE_SIZE = 4096
override fun show() {
if (environment != RunningEnvironment.MOBILE) {
Gdx.gl.glDisable(GL20.GL_DITHER)
}
assetManager = AssetManager()
@@ -634,7 +629,7 @@ object BlendMode {
}
enum class RunningEnvironment {
PC, CONSOLE, MOBILE
PC, CONSOLE//, MOBILE
}
infix fun Color.screen(other: Color) = Color(