mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-03 21:40:31 +07:00
Resolved #10031 - don't add icons to selection boxes
This commit is contained in:
parent
743c90d454
commit
1037b3d240
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user