removing default batch on blendxxx() funs

This commit is contained in:
minjaesong
2019-01-20 03:09:23 +09:00
parent 9ca078687f
commit 5786b843e4
16 changed files with 44 additions and 44 deletions

View File

@@ -40,11 +40,11 @@ open class UIItemImageButton(
override fun render(batch: SpriteBatch, camera: Camera) {
// draw background
if (mouseUp) {
BlendMode.resolve(activeBackBlendMode)
BlendMode.resolve(activeBackBlendMode, batch)
batch.color = activeBackCol
}
else {
BlendMode.resolve(buttonBackBlendMode)
BlendMode.resolve(buttonBackBlendMode, batch)
batch.color = buttonBackCol
}
@@ -52,7 +52,7 @@ open class UIItemImageButton(
// draw image
blendNormal()
blendNormal(batch)
batch.color = if (highlighted) highlightCol
else if (mouseUp) activeCol