utilising new mouselatch

This commit is contained in:
minjaesong
2024-01-10 01:46:39 +09:00
parent a149107b48
commit acaedc4d80
11 changed files with 45 additions and 40 deletions

View File

@@ -101,14 +101,11 @@ class UIItemSpinner(
else
0
if (!mouseLatched && Terrarum.mouseDown && mouseOnButton in 1..2) {
mouseLatched = true
if (mouseOnButton in 1..2) mouseLatch.latch {
changeValueBy((mouseOnButton * 2) - 3)
fboUpdateLatch = true
selectionChangeListener(value)
}
else if (!Terrarum.mouseDown) mouseLatched = false
}
private var textCache = ""