Resolved #10031 - don't add icons to selection boxes

This commit is contained in:
Yair Morgenstern 2023-09-04 14:41:47 +03:00
parent 743c90d454
commit 1037b3d240

View File

@ -7,7 +7,7 @@ import com.unciv.models.translations.tr
class TranslatedSelectBox(values : Collection<String>, default:String, skin: Skin) : SelectBox<TranslatedSelectBox.TranslatedString>(skin) {
class TranslatedString(val value: String) {
val translation = value.tr()
val translation = value.tr(hideIcons = true)
override fun toString() = translation
// Equality contract needs to be implemented else TranslatedSelectBox.setSelected won't work properly
override fun equals(other: Any?): Boolean = other is TranslatedString && value == other.value