FIX: quickbar opacity bug, Notification won't display, remaned majuscule to fullwidth, keyboard layouts for control helper

Former-commit-id: 99c51499131a7cbae1b7345c15d804bd5340e7b6
Former-commit-id: 1326b69cb920d3590fe2cbe33013c85c9eeb1191
This commit is contained in:
Song Minjae
2016-07-29 21:02:24 +09:00
parent ee647652d2
commit fb11d5c9c2
42 changed files with 232 additions and 115 deletions

View File

@@ -27,8 +27,6 @@ class UIPieMenu : UICanvas {
* In milliseconds
*/
override var openCloseTime: Int = 160
override var openCloseTimer: Int = 0
get() = handler!!.openCloseCounter
private val smallenSize = 0.93f
@@ -82,12 +80,12 @@ class UIPieMenu : UICanvas {
}
override fun doOpening(gc: GameContainer, delta: Int) {
handler!!.opacity = openCloseTimer.toFloat() / openCloseTime
handler!!.opacity = handler!!.openCloseCounter.toFloat() / openCloseTime
handler!!.scale = smallenSize + (1f.minus(smallenSize) * handler!!.opacity)
}
override fun doClosing(gc: GameContainer, delta: Int) {
handler!!.opacity = (openCloseTime - openCloseTimer.toFloat()) / openCloseTime
handler!!.opacity = (openCloseTime - handler!!.openCloseCounter.toFloat()) / openCloseTime
handler!!.scale = smallenSize + (1f.minus(smallenSize) * handler!!.opacity)
}