mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
inventory ui transition wip
This commit is contained in:
@@ -66,7 +66,7 @@ abstract class UIItem(var parentUI: UICanvas, val initialX: Int, val initialY: I
|
||||
* oldPosX = posX
|
||||
* ```
|
||||
*/
|
||||
protected abstract var oldPosX: Int
|
||||
protected var oldPosX: Int = initialX
|
||||
/** This variable is NOT updated on its own.
|
||||
* ```
|
||||
* val posYDelta = posY - oldPosY
|
||||
@@ -75,7 +75,7 @@ abstract class UIItem(var parentUI: UICanvas, val initialX: Int, val initialY: I
|
||||
* oldPosY = posY
|
||||
* ```
|
||||
*/
|
||||
protected abstract var oldPosY: Int
|
||||
protected var oldPosY: Int = initialY
|
||||
|
||||
/** Position of mouse relative to this item */
|
||||
protected val relativeMouseX: Int
|
||||
|
||||
Reference in New Issue
Block a user