mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 10:34:06 +09:00
buildingmaker: zoom using z key
This commit is contained in:
@@ -57,12 +57,12 @@ class UIScreenZoom : UICanvas(
|
||||
|
||||
override fun doOpening(delta: Float) {
|
||||
Terrarum.ingame?.screenZoom = Movement.fastPullOut(handler.openCloseCounter / openCloseTime, zoomMin, zoomMax)
|
||||
handler.opacity = Terrarum.ingame?.screenZoom!! - zoomMin
|
||||
handler.opacity = (Terrarum.ingame?.screenZoom ?: 1f) - zoomMin
|
||||
}
|
||||
|
||||
override fun doClosing(delta: Float) {
|
||||
Terrarum.ingame?.screenZoom = Movement.fastPullOut(handler.openCloseCounter / openCloseTime, zoomMax, zoomMin)
|
||||
handler.opacity = Terrarum.ingame?.screenZoom!! - zoomMin
|
||||
handler.opacity = (Terrarum.ingame?.screenZoom ?: 1f) - zoomMin
|
||||
}
|
||||
|
||||
override fun endOpening(delta: Float) {
|
||||
|
||||
Reference in New Issue
Block a user