mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 07:48:31 +07:00
'Display' options organized into subcatagories - kudos @Ouaz
This commit is contained in:
@ -12,17 +12,18 @@ import com.unciv.models.metadata.ScreenSize
|
||||
import com.unciv.models.skins.SkinCache
|
||||
import com.unciv.models.tilesets.TileSetCache
|
||||
import com.unciv.models.translations.tr
|
||||
import com.unciv.ui.images.ImageGetter
|
||||
import com.unciv.ui.screens.newgamescreen.TranslatedSelectBox
|
||||
import com.unciv.ui.popups.ConfirmPopup
|
||||
import com.unciv.ui.screens.basescreen.BaseScreen
|
||||
import com.unciv.ui.components.UncivSlider
|
||||
import com.unciv.ui.components.WrappableLabel
|
||||
import com.unciv.ui.components.extensions.addSeparator
|
||||
import com.unciv.ui.components.extensions.brighten
|
||||
import com.unciv.ui.components.extensions.onChange
|
||||
import com.unciv.ui.components.extensions.onClick
|
||||
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.ConfirmPopup
|
||||
import com.unciv.ui.screens.basescreen.BaseScreen
|
||||
import com.unciv.ui.screens.newgamescreen.TranslatedSelectBox
|
||||
import com.unciv.ui.screens.worldscreen.NotificationsScroll
|
||||
import com.unciv.utils.Display
|
||||
import com.unciv.utils.ScreenMode
|
||||
@ -39,7 +40,11 @@ fun displayTab(
|
||||
|
||||
val settings = optionsPopup.settings
|
||||
|
||||
add("Screen".toLabel(fontSize = 24)).colspan(2).row()
|
||||
|
||||
addScreenModeSelectBox(this, settings, optionsPopup.selectBoxMinWidth)
|
||||
addScreenSizeSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
|
||||
|
||||
if (Gdx.app.type == Application.ApplicationType.Desktop) {
|
||||
optionsPopup.addCheckbox(this, "Map mouse auto-scroll", settings.mapAutoScroll, true) {
|
||||
@ -50,29 +55,36 @@ fun displayTab(
|
||||
addScrollSpeedSlider(this, settings, optionsPopup.selectBoxMinWidth)
|
||||
}
|
||||
|
||||
addSeparator()
|
||||
add("Graphics".toLabel(fontSize = 24)).colspan(2).row()
|
||||
|
||||
addTileSetSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
addUnitSetSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
addSkinSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
|
||||
addSeparator()
|
||||
add("UI".toLabel(fontSize = 24)).colspan(2).row()
|
||||
|
||||
addNotificationScrollSelect(this, settings, optionsPopup.selectBoxMinWidth)
|
||||
addMinimapSizeSlider(this, settings, optionsPopup.selectBoxMinWidth)
|
||||
optionsPopup.addCheckbox(this, "Show tutorials", settings.showTutorials, updateWorld = true, newRow = false) { settings.showTutorials = it }
|
||||
addResetTutorials(this, settings)
|
||||
optionsPopup.addCheckbox(this, "Show zoom buttons in world screen", settings.showZoomButtons, true) { settings.showZoomButtons = it }
|
||||
optionsPopup.addCheckbox(this, "Experimental Demographics scoreboard", settings.useDemographics, true) { settings.useDemographics = it }
|
||||
|
||||
addSeparator()
|
||||
add("Visual Hints".toLabel(fontSize = 24)).colspan(2).row()
|
||||
|
||||
optionsPopup.addCheckbox(this, "Show unit movement arrows", settings.showUnitMovements, true) { settings.showUnitMovements = it }
|
||||
optionsPopup.addCheckbox(this, "Show tile yields", settings.showTileYields, true) { settings.showTileYields = it } // JN
|
||||
optionsPopup.addCheckbox(this, "Show worked tiles", settings.showWorkedTiles, true) { settings.showWorkedTiles = it }
|
||||
optionsPopup.addCheckbox(this, "Show resources and improvements", settings.showResourcesAndImprovements, true) { settings.showResourcesAndImprovements = it }
|
||||
optionsPopup.addCheckbox(this, "Show tutorials", settings.showTutorials, updateWorld = true, newRow = false) { settings.showTutorials = it }
|
||||
addResetTutorials(this, settings)
|
||||
optionsPopup.addCheckbox(this, "Show pixel improvements", settings.showPixelImprovements, true) { settings.showPixelImprovements = it }
|
||||
optionsPopup.addCheckbox(this, "Experimental Demographics scoreboard", settings.useDemographics, true) { settings.useDemographics = it }
|
||||
optionsPopup.addCheckbox(this, "Show zoom buttons in world screen", settings.showZoomButtons, true) { settings.showZoomButtons = it }
|
||||
|
||||
addNotificationScrollSelect(this, settings, optionsPopup.selectBoxMinWidth)
|
||||
|
||||
addMinimapSizeSlider(this, settings, optionsPopup.selectBoxMinWidth)
|
||||
|
||||
addUnitIconAlphaSlider(this, settings, optionsPopup.selectBoxMinWidth)
|
||||
|
||||
addScreenSizeSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
|
||||
addTileSetSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
|
||||
addUnitSetSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
|
||||
addSkinSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||
addSeparator()
|
||||
add("Performance".toLabel(fontSize = 24)).colspan(2).row()
|
||||
|
||||
optionsPopup.addCheckbox(this, "Continuous rendering", settings.continuousRendering) {
|
||||
settings.continuousRendering = it
|
||||
|
Reference in New Issue
Block a user