vital metre prototype

Former-commit-id: c3f95f7ef280eabc5516ad6885386cb89d6ee35d
Former-commit-id: ab9cd5bd8daf27d37828a5ca4a737a723d76fa1a
This commit is contained in:
Song Minjae
2017-03-04 01:52:30 +09:00
parent 0a0aea9589
commit edd97b45a7
10 changed files with 155 additions and 13 deletions

View File

@@ -82,22 +82,22 @@ class UIPieMenu : UICanvas {
}
override fun doOpening(gc: GameContainer, delta: Int) {
handler!!.opacity = handler!!.openCloseCounter.toFloat() / openCloseTime
UICanvas.doOpeningFade(handler, openCloseTime)
handler!!.scale = smallenSize + (1f.minus(smallenSize) * handler!!.opacity)
}
override fun doClosing(gc: GameContainer, delta: Int) {
handler!!.opacity = (openCloseTime - handler!!.openCloseCounter.toFloat()) / openCloseTime
UICanvas.doClosingFade(handler, openCloseTime)
handler!!.scale = smallenSize + (1f.minus(smallenSize) * handler!!.opacity)
}
override fun endOpening(gc: GameContainer, delta: Int) {
handler!!.opacity = 1f
UICanvas.endOpeningFade(handler)
handler!!.scale = 1f
}
override fun endClosing(gc: GameContainer, delta: Int) {
handler!!.opacity = 0f
UICanvas.endClosingFade(handler)
handler!!.scale = 1f
}
}