dithered skybox

This commit is contained in:
minjaesong
2017-07-16 05:03:04 +09:00
parent 9f56ca2e99
commit 942971f456
11 changed files with 295 additions and 84 deletions

View File

@@ -42,7 +42,6 @@ class UIItemTextButton(
override val height: Int = UIItemTextButton.height
var highlighted: Boolean = false
var mouseOver = false
override fun update(delta: Float) {
@@ -59,7 +58,7 @@ class UIItemTextButton(
batch.color = highlightBackCol
batch.fillRect(posX.toFloat(), posY.toFloat(), width.toFloat(), height.toFloat())
}
else if (mouseOver) {
else if (mouseUp) {
BlendMode.resolve(activeBackBlendMode)
batch.color = activeBackCol
batch.fillRect(posX.toFloat(), posY.toFloat(), width.toFloat(), height.toFloat())
@@ -68,9 +67,8 @@ class UIItemTextButton(
blendNormal()
mouseOver = mouseUp
batch.color = if (highlighted) highlightCol
else if (mouseOver) activeCol
else if (mouseUp) activeCol
else inactiveCol
font.draw(batch,