mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
uicanvas: updateUI/renderUI to updateImpl/renderImpl to match the naming scheme with the actor
This commit is contained in:
@@ -47,7 +47,7 @@ class Noticelet : UICanvas() {
|
||||
setAsAlwaysVisible()
|
||||
}
|
||||
|
||||
override fun updateUI(delta: Float) {
|
||||
override fun updateImpl(delta: Float) {
|
||||
// update timer and animation
|
||||
messageQueue.forEach {
|
||||
it.akku += delta
|
||||
@@ -75,7 +75,7 @@ class Noticelet : UICanvas() {
|
||||
|
||||
private var ypos = 1f // 1: bottom, -1: top
|
||||
|
||||
override fun renderUI(frameDelta: Float, batch: SpriteBatch, camera: OrthographicCamera) {
|
||||
override fun renderImpl(frameDelta: Float, batch: SpriteBatch, camera: OrthographicCamera) {
|
||||
val px = Toolkit.drawWidthf
|
||||
val py = App.scr.halfhf + awayFromCentre * ypos - (if (ypos < 0) h else 0f)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user