mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
automated menuwork for control panel
This commit is contained in:
@@ -35,7 +35,7 @@ class UIItemHorzSlider(
|
||||
private var mouseOnHandle = false
|
||||
|
||||
private val handleTravelDist = width - handleWidth
|
||||
private var handlePos = 0.0
|
||||
private var handlePos = (initialValue / max).times(handleTravelDist).coerceIn(0.0, handleTravelDist.toDouble())
|
||||
|
||||
var value: Double = initialValue; private set
|
||||
var selectionChangeListener: (Double) -> Unit = {}
|
||||
|
||||
Reference in New Issue
Block a user