mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
still WIP inventory impl, held item impl
Former-commit-id: 9468cfae21ff09c3dd30352a849910364e01d780 Former-commit-id: 50247ccebf3284f739877a1d6c6d8574449a9824
This commit is contained in:
@@ -40,7 +40,7 @@ class BasicDebugInfoWindow : UICanvas {
|
||||
val ccR = GameFontBase.colToCode["r"]
|
||||
val ccM = GameFontBase.colToCode["m"]
|
||||
|
||||
override fun processInput(input: Input) {
|
||||
override fun processInput(gc: GameContainer, delta: Int, input: Input) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ class ConsoleWindow : UICanvas, KeyboardControlled {
|
||||
|
||||
}
|
||||
|
||||
override fun processInput(input: Input) {
|
||||
override fun processInput(gc: GameContainer, delta: Int, input: Input) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ constructor(override var width: Int, isBlackVariant: Boolean) : UICanvas {
|
||||
}
|
||||
}
|
||||
|
||||
override fun processInput(input: Input) {
|
||||
override fun processInput(gc: GameContainer, delta: Int, input: Input) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ constructor() : UICanvas {
|
||||
handler!!.opacity = 0f
|
||||
}
|
||||
|
||||
override fun processInput(input: Input) {
|
||||
override fun processInput(gc: GameContainer, delta: Int, input: Input) {
|
||||
}
|
||||
|
||||
fun sendNotification(message: Array<String>) {
|
||||
|
||||
@@ -28,7 +28,7 @@ interface UICanvas {
|
||||
|
||||
fun render(gc: GameContainer, g: Graphics)
|
||||
|
||||
fun processInput(input: Input)
|
||||
fun processInput(gc: GameContainer, delta: Int, input: Input)
|
||||
|
||||
/**
|
||||
* Do not modify handler!!.openCloseCounter here.
|
||||
|
||||
@@ -190,9 +190,9 @@ constructor(val UI: UICanvas) {
|
||||
}
|
||||
}
|
||||
|
||||
fun processInput(input: Input) {
|
||||
fun processInput(gc: GameContainer, delta: Int, input: Input) {
|
||||
if (isVisible) {
|
||||
UI.processInput(input)
|
||||
UI.processInput(gc, delta, input)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class UIPieMenu : UICanvas {
|
||||
}
|
||||
}
|
||||
|
||||
override fun processInput(input: Input) {
|
||||
override fun processInput(gc: GameContainer, delta: Int, input: Input) {
|
||||
if (handler!!.isOpened || handler!!.isOpening) {
|
||||
val cursorPos = Vector2(input.mouseX.toDouble(), input.mouseY.toDouble())
|
||||
val centre = Vector2(Terrarum.WIDTH / 2.0, Terrarum.HEIGHT / 2.0)
|
||||
|
||||
@@ -51,7 +51,7 @@ class UIQuickBar : UICanvas, MouseControlled {
|
||||
}
|
||||
}
|
||||
|
||||
override fun processInput(input: Input) {
|
||||
override fun processInput(gc: GameContainer, delta: Int, input: Input) {
|
||||
}
|
||||
|
||||
override fun doOpening(gc: GameContainer, delta: Int) {
|
||||
|
||||
Reference in New Issue
Block a user