mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-07 17:14:06 +09:00
musicplayer: click on the music title to close the list
This commit is contained in:
@@ -440,6 +440,11 @@ class MusicPlayer(private val ingame: TerrarumIngame) : UICanvas() {
|
||||
}
|
||||
}
|
||||
}
|
||||
// click on the music title to return to MODE_MOUSE_UP
|
||||
else if (mouseUp && relativeMouseY.toFloat() in _posY + height - capsuleHeight .. _posY + height && Terrarum.mouseDown && !transitionOngoing && mode > MODE_MOUSE_UP) {
|
||||
playControlButtonLatched = true
|
||||
transitionRequest = MODE_MOUSE_UP
|
||||
}
|
||||
// unlatch the click latch
|
||||
else if (!Terrarum.mouseDown) {
|
||||
playControlButtonLatched = false
|
||||
|
||||
Reference in New Issue
Block a user