From a4b65856267644dd85cc59b37f7aa12fd0d71ced Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 16 Mar 2023 19:52:01 +0200 Subject: [PATCH] Mod checker tab aligns all mods to the left --- core/src/com/unciv/ui/components/ExpanderTab.kt | 2 +- core/src/com/unciv/ui/popups/options/ModCheckTab.kt | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/src/com/unciv/ui/components/ExpanderTab.kt b/core/src/com/unciv/ui/components/ExpanderTab.kt index 6857fb4031..a6a95479a4 100644 --- a/core/src/com/unciv/ui/components/ExpanderTab.kt +++ b/core/src/com/unciv/ui/components/ExpanderTab.kt @@ -48,7 +48,7 @@ class ExpanderTab( val persistedStates = HashMap() } - private val header = Table(skin) // Header with label and icon, touchable to show/hide + val header = Table(skin) // Header with label and icon, touchable to show/hide private val headerLabel = title.toLabel(fontSize = fontSize) private val headerIcon = ImageGetter.getImage(arrowImage) private val contentWrapper = Table() // Wrapper for innerTable, this is what will be shown/hidden diff --git a/core/src/com/unciv/ui/popups/options/ModCheckTab.kt b/core/src/com/unciv/ui/popups/options/ModCheckTab.kt index f1ebb4eeb9..a2f81e6fe3 100644 --- a/core/src/com/unciv/ui/popups/options/ModCheckTab.kt +++ b/core/src/com/unciv/ui/popups/options/ModCheckTab.kt @@ -13,10 +13,6 @@ import com.unciv.models.ruleset.RulesetValidator import com.unciv.models.ruleset.unique.Unique import com.unciv.models.ruleset.unique.UniqueType import com.unciv.models.translations.tr -import com.unciv.ui.images.ImageGetter -import com.unciv.ui.screens.newgamescreen.TranslatedSelectBox -import com.unciv.ui.popups.ToastPopup -import com.unciv.ui.screens.basescreen.BaseScreen import com.unciv.ui.components.ExpanderTab import com.unciv.ui.components.TabbedPager import com.unciv.ui.components.extensions.onChange @@ -24,6 +20,10 @@ import com.unciv.ui.components.extensions.onClick import com.unciv.ui.components.extensions.surroundWithCircle import com.unciv.ui.components.extensions.toLabel import com.unciv.ui.components.extensions.toTextButton +import com.unciv.ui.images.ImageGetter +import com.unciv.ui.popups.ToastPopup +import com.unciv.ui.screens.basescreen.BaseScreen +import com.unciv.ui.screens.newgamescreen.TranslatedSelectBox import com.unciv.utils.Log import com.unciv.utils.concurrency.Concurrency import com.unciv.utils.concurrency.launchOnGLThread @@ -143,6 +143,7 @@ class ModCheckTab( .joinToString("\n") { line -> line.text } }).row() } + expanderTab.header.left() val loadingLabel = modCheckResultTable.children.last() modCheckResultTable.removeActor(loadingLabel)