mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
changes in fade-slide transition container
This commit is contained in:
@@ -8,14 +8,14 @@ import net.torvald.terrarum.App
|
||||
import net.torvald.terrarum.App.printdbg
|
||||
|
||||
open class UIItemTransitionContainer(
|
||||
private val parent: UICanvas,
|
||||
initialX: Int,
|
||||
initialY: Int,
|
||||
override val width: Int,
|
||||
override val height: Int,
|
||||
val transitionLength: Float = 0.15f,
|
||||
var currentPosition: Float = 0f,
|
||||
val uis: Array<out UICanvas>
|
||||
private val parent: UICanvas,
|
||||
initialX: Int,
|
||||
initialY: Int,
|
||||
override val width: Int,
|
||||
override val height: Int,
|
||||
val transitionLength: Float = 0.15f,
|
||||
var currentPosition: Float = 0f,
|
||||
open val uis: List<UICanvas>
|
||||
) : UIItem(parent, initialX, initialY) {
|
||||
|
||||
val debugvals = false
|
||||
@@ -51,7 +51,7 @@ open class UIItemTransitionContainer(
|
||||
uis.forEachIndexed { index, ui -> if (timeToUpdate(index)) ui.update(delta) }
|
||||
}
|
||||
|
||||
open fun onTransition(currentPosition: Float, uis: Array<out UICanvas>) {}
|
||||
open fun onTransition(currentPosition: Float, uis: List<UICanvas>) {}
|
||||
|
||||
override fun render(batch: SpriteBatch, camera: Camera) {
|
||||
super.render(batch, camera)
|
||||
|
||||
Reference in New Issue
Block a user