From 1037b3d2400cf49bde89ec769e2c3c45fb75c856 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 4 Sep 2023 14:41:47 +0300 Subject: [PATCH] Resolved #10031 - don't add icons to selection boxes --- core/src/com/unciv/ui/components/TranslatedSelectBox.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/components/TranslatedSelectBox.kt b/core/src/com/unciv/ui/components/TranslatedSelectBox.kt index 509eff17ba..caa8afef75 100644 --- a/core/src/com/unciv/ui/components/TranslatedSelectBox.kt +++ b/core/src/com/unciv/ui/components/TranslatedSelectBox.kt @@ -7,7 +7,7 @@ import com.unciv.models.translations.tr class TranslatedSelectBox(values : Collection, default:String, skin: Skin) : SelectBox(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