options to change atlas texture size

This commit is contained in:
minjaesong
2023-08-14 03:53:25 +09:00
parent 9919a99032
commit f8f75fb7b6
16 changed files with 133 additions and 73 deletions

View File

@@ -17,15 +17,15 @@ import kotlin.math.roundToInt
*/
class UIItemSpinner(
parentUI: UICanvas,
initialX: Int, initialY: Int,
private var initialValue: Number,
val min: Number,
val max: Number,
val step: Number,
override val width: Int,
private val drawBorder: Boolean = true,
private val numberToTextFunction: (Number) -> String = { "$it" }
parentUI: UICanvas,
initialX: Int, initialY: Int,
private var initialValue: Number,
val min: Number,
val max: Number,
val step: Number,
override val width: Int,
private val drawBorder: Boolean = true,
private val numberToTextFunction: (Number) -> String = { "$it" }
) : UIItem(parentUI, initialX, initialY) {
// to alleviate floating point errors adding up as the spinner is being used