diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index 8a2b6d2288..09d7e3ac35 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -379,6 +379,7 @@ Sparse = Abundant = Strategic Balance = Legendary Start = +This is used for painting resources, not in map generator steps: = Advanced Settings = RNG Seed = diff --git a/core/src/com/unciv/ui/screens/newgamescreen/MapParametersTable.kt b/core/src/com/unciv/ui/screens/newgamescreen/MapParametersTable.kt index e4b29a8e50..86c3fb5f1e 100644 --- a/core/src/com/unciv/ui/screens/newgamescreen/MapParametersTable.kt +++ b/core/src/com/unciv/ui/screens/newgamescreen/MapParametersTable.kt @@ -5,6 +5,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.CheckBox import com.badlogic.gdx.scenes.scene2d.ui.Table import com.badlogic.gdx.scenes.scene2d.ui.TextField import com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldFilter.DigitsOnlyFilter +import com.badlogic.gdx.utils.Align import com.unciv.logic.map.MapGeneratedMainType import com.unciv.logic.map.MapParameters import com.unciv.logic.map.MapResources @@ -274,6 +275,10 @@ class MapParametersTable( mapParameters.mapResources = resourceSelectBox.selected.value } + if (forMapEditor) { + val comment = "This is used for painting resources, not in map generator steps:" + add(comment.toLabel(Color.GOLD, 14, Align.center).apply { wrap=true }).colspan(2).row() + } add("{Resource Setting}:".toLabel()).left() add(resourceSelectBox).fillX().row() } @@ -362,7 +367,7 @@ class MapParametersTable( return slider } - fun addTextButton(text: String, shouldAddToTable: Boolean = false, action: ((Boolean) -> Unit),) { + fun addTextButton(text: String, shouldAddToTable: Boolean = false, action: ((Boolean) -> Unit)) { val button = text.toTextButton() button.onClick { action.invoke(true) } if (shouldAddToTable) @@ -378,8 +383,10 @@ class MapParametersTable( addSlider("Temperature shift", {mapParameters.temperatureShift}, -0.4f, 0.4f, 0.1f) { mapParameters.temperatureShift = it } - addSlider("Resource richness", {mapParameters.resourceRichness},0f, 0.5f) - { mapParameters.resourceRichness = it } + if (forMapEditor) { + addSlider("Resource richness", { mapParameters.resourceRichness }, 0f, 0.5f) + { mapParameters.resourceRichness = it } + } addSlider("Vegetation richness", {mapParameters.vegetationRichness}, 0f, 1f) { mapParameters.vegetationRichness = it }