|
|
@ -27,8 +27,8 @@ class SliderSetting(
|
|
|
|
get() {
|
|
|
|
get() {
|
|
|
|
val setting = setting ?: return defaultValue!!
|
|
|
|
val setting = setting ?: return defaultValue!!
|
|
|
|
return when (setting) {
|
|
|
|
return when (setting) {
|
|
|
|
is IntSetting -> setting.int
|
|
|
|
is AbstractIntSetting -> setting.int
|
|
|
|
is FloatSetting -> setting.float.roundToInt()
|
|
|
|
is AbstractFloatSetting -> setting.float.roundToInt()
|
|
|
|
else -> {
|
|
|
|
else -> {
|
|
|
|
Log.error("[SliderSetting] Error casting setting type.")
|
|
|
|
Log.error("[SliderSetting] Error casting setting type.")
|
|
|
|
-1
|
|
|
|
-1
|
|
|
|