fix: non-pausing UIs AND the ingame control are both getting input processed

This commit is contained in:
minjaesong
2024-01-03 15:46:52 +09:00
parent 38ecf8d19c
commit ccd36ffdbd
18 changed files with 63 additions and 17 deletions

View File

@@ -12,6 +12,7 @@ import kotlin.math.roundToInt
/**
* Created by minjaesong on 2021-10-01.
*/
@UINotControllable
class UIAutosaveNotifier : UICanvas() {
init {

View File

@@ -431,3 +431,10 @@ abstract class UICanvas(
override fun toString(): String = "${this.javaClass.simpleName}@${this.hashCode().toString(16)}"
}
/**
* Annotation added to the UI that is not meant to have a user interaction in any way, so that even if
* the mouse cursor is above it, the UI is not recognised as such. This is useful on UIs that spawn a
* tooltip and the said UI is checking if the mouse cursor is NOT above any other overlaid UI (e.g. a message box)
*/
annotation class UINotControllable