fixed notificator UI

This commit is contained in:
minjaesong
2019-01-31 20:54:25 +09:00
parent 6d19347dfb
commit 29fbad889b
11 changed files with 102 additions and 45 deletions

View File

@@ -55,8 +55,14 @@ class UIHandler(//var UI: UICanvas,
var closeFired = false
var opacity = 1f
set(value) {
field = value
opacityColour.set(1f,1f,1f,opacity)
}
var scale = 1f
val opacityColour = Color(1f,1f,1f,opacity)
var openCloseCounter = 0f
init {
@@ -175,13 +181,18 @@ class UIHandler(//var UI: UICanvas,
ui.renderUI(batch, camera)
//ingameGraphics.flush()
batch.color = Color.WHITE
setCameraPosition(batch, camera, 0f, 0f)
}
subUIs.forEach { it.render(batch, camera) }
subUIs.forEach {
it.render(batch, camera)
batch.color = Color.WHITE
}
}
fun setPosition(x: Int, y: Int) {