File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
common/src/main/kotlin/com/lambda/gui/impl/clickgui/module/settings Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ package com.lambda.gui.impl.clickgui.module.settings
2020import com.lambda.config.settings.comparable.EnumSetting
2121import com.lambda.gui.component.core.UIBuilder
2222import com.lambda.gui.component.layout.Layout
23+ import com.lambda.util.NamedEnum
2324import com.lambda.util.math.MathUtils.floorToInt
2425import com.lambda.util.math.transform
2526
@@ -28,7 +29,7 @@ class EnumSlider <T : Enum<T>>(
2829 setting : EnumSetting <T >
2930) : SettingSlider<T, EnumSetting<T>>(owner, setting) {
3031 override val settingValue: String
31- get() = settingDelegate.name
32+ get() = (settingDelegate as ? NamedEnum )?.displayName ? : settingDelegate.name
3233
3334 init {
3435 slider.progress {
You can’t perform that action at this time.
0 commit comments