mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Mod checker tab aligns all mods to the left
This commit is contained in:
parent
5ee3df96c8
commit
a4b6585626
@ -48,7 +48,7 @@ class ExpanderTab(
|
|||||||
val persistedStates = HashMap<String, Boolean>()
|
val persistedStates = HashMap<String, Boolean>()
|
||||||
}
|
}
|
||||||
|
|
||||||
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 headerLabel = title.toLabel(fontSize = fontSize)
|
||||||
private val headerIcon = ImageGetter.getImage(arrowImage)
|
private val headerIcon = ImageGetter.getImage(arrowImage)
|
||||||
private val contentWrapper = Table() // Wrapper for innerTable, this is what will be shown/hidden
|
private val contentWrapper = Table() // Wrapper for innerTable, this is what will be shown/hidden
|
||||||
|
@ -13,10 +13,6 @@ import com.unciv.models.ruleset.RulesetValidator
|
|||||||
import com.unciv.models.ruleset.unique.Unique
|
import com.unciv.models.ruleset.unique.Unique
|
||||||
import com.unciv.models.ruleset.unique.UniqueType
|
import com.unciv.models.ruleset.unique.UniqueType
|
||||||
import com.unciv.models.translations.tr
|
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.ExpanderTab
|
||||||
import com.unciv.ui.components.TabbedPager
|
import com.unciv.ui.components.TabbedPager
|
||||||
import com.unciv.ui.components.extensions.onChange
|
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.surroundWithCircle
|
||||||
import com.unciv.ui.components.extensions.toLabel
|
import com.unciv.ui.components.extensions.toLabel
|
||||||
import com.unciv.ui.components.extensions.toTextButton
|
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.Log
|
||||||
import com.unciv.utils.concurrency.Concurrency
|
import com.unciv.utils.concurrency.Concurrency
|
||||||
import com.unciv.utils.concurrency.launchOnGLThread
|
import com.unciv.utils.concurrency.launchOnGLThread
|
||||||
@ -143,6 +143,7 @@ class ModCheckTab(
|
|||||||
.joinToString("\n") { line -> line.text }
|
.joinToString("\n") { line -> line.text }
|
||||||
}).row()
|
}).row()
|
||||||
}
|
}
|
||||||
|
expanderTab.header.left()
|
||||||
|
|
||||||
val loadingLabel = modCheckResultTable.children.last()
|
val loadingLabel = modCheckResultTable.children.last()
|
||||||
modCheckResultTable.removeActor(loadingLabel)
|
modCheckResultTable.removeActor(loadingLabel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user