mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-12 00:39:56 +07:00
'Display' options organized into subcatagories - kudos @Ouaz
This commit is contained in:
@ -678,12 +678,16 @@ Visit repository =
|
|||||||
## Display tab
|
## Display tab
|
||||||
Display =
|
Display =
|
||||||
|
|
||||||
|
### Screen subgroup
|
||||||
|
|
||||||
|
Screen =
|
||||||
Screen Mode =
|
Screen Mode =
|
||||||
Windowed =
|
Windowed =
|
||||||
Fullscreen =
|
Fullscreen =
|
||||||
Borderless =
|
Borderless =
|
||||||
|
|
||||||
Screen orientation =
|
Screen Size =
|
||||||
|
|
||||||
Landscape (fixed) =
|
Landscape (fixed) =
|
||||||
Portrait (fixed) =
|
Portrait (fixed) =
|
||||||
Auto (sensor adjusted) =
|
Auto (sensor adjusted) =
|
||||||
@ -691,30 +695,46 @@ Auto (sensor adjusted) =
|
|||||||
### Enable panning the map when you move the mouse to the edge of the window
|
### Enable panning the map when you move the mouse to the edge of the window
|
||||||
Map mouse auto-scroll =
|
Map mouse auto-scroll =
|
||||||
Map panning speed =
|
Map panning speed =
|
||||||
Order trade offers by amount =
|
|
||||||
Experimental Demographics scoreboard =
|
|
||||||
Unit icon opacity =
|
|
||||||
Enable display cutout (requires restart) =
|
|
||||||
|
|
||||||
Show zoom buttons in world screen =
|
### Graphics subgroup
|
||||||
Show worked tiles =
|
|
||||||
Show resources and improvements =
|
Tileset =
|
||||||
Show tile yields =
|
Unitset =
|
||||||
Show unit movement arrows =
|
UI Skin =
|
||||||
Show pixel units =
|
|
||||||
Show pixel improvements =
|
### UI subgroup
|
||||||
Minimap size =
|
|
||||||
|
UI =
|
||||||
|
|
||||||
Notifications on world screen =
|
Notifications on world screen =
|
||||||
Disabled =
|
Disabled =
|
||||||
Hidden =
|
Hidden =
|
||||||
Visible =
|
Visible =
|
||||||
Permanent =
|
Permanent =
|
||||||
|
|
||||||
|
Minimap size =
|
||||||
|
|
||||||
Show tutorials =
|
Show tutorials =
|
||||||
Reset tutorials =
|
Reset tutorials =
|
||||||
Do you want to reset completed tutorials? =
|
Do you want to reset completed tutorials? =
|
||||||
Reset =
|
Reset =
|
||||||
|
|
||||||
|
Show zoom buttons in world screen =
|
||||||
|
Experimental Demographics scoreboard =
|
||||||
|
|
||||||
|
### Visual Hints subgroup
|
||||||
|
|
||||||
|
Visual Hints =
|
||||||
|
Show worked tiles =
|
||||||
|
Show resources and improvements =
|
||||||
|
Show tile yields =
|
||||||
|
Show unit movement arrows =
|
||||||
|
Show pixel units =
|
||||||
|
Show pixel improvements =
|
||||||
|
Unit icon opacity =
|
||||||
|
|
||||||
|
### Performance subgroup
|
||||||
|
|
||||||
Continuous rendering =
|
Continuous rendering =
|
||||||
Experimental rendering improvements =
|
Experimental rendering improvements =
|
||||||
When disabled, saves battery life but certain animations will be suspended =
|
When disabled, saves battery life but certain animations will be suspended =
|
||||||
@ -757,11 +777,15 @@ Generate translation files =
|
|||||||
Translation files are generated successfully. =
|
Translation files are generated successfully. =
|
||||||
Fastlane files are generated successfully. =
|
Fastlane files are generated successfully. =
|
||||||
|
|
||||||
|
Screen orientation =
|
||||||
|
|
||||||
Font family =
|
Font family =
|
||||||
Font size multiplier =
|
Font size multiplier =
|
||||||
Default Font =
|
Default Font =
|
||||||
|
|
||||||
Enable Easter Eggs =
|
Enable Easter Eggs =
|
||||||
|
Order trade offers by amount =
|
||||||
|
Enable display cutout (requires restart) =
|
||||||
|
|
||||||
## Keys tab
|
## Keys tab
|
||||||
Keys =
|
Keys =
|
||||||
@ -1441,10 +1465,6 @@ Defence bonus =
|
|||||||
Movement cost =
|
Movement cost =
|
||||||
for =
|
for =
|
||||||
Missing translations: =
|
Missing translations: =
|
||||||
Screen Size =
|
|
||||||
Tileset =
|
|
||||||
Unitset =
|
|
||||||
UI Skin =
|
|
||||||
Create =
|
Create =
|
||||||
Improvements =
|
Improvements =
|
||||||
Loading... =
|
Loading... =
|
||||||
|
@ -12,17 +12,18 @@ import com.unciv.models.metadata.ScreenSize
|
|||||||
import com.unciv.models.skins.SkinCache
|
import com.unciv.models.skins.SkinCache
|
||||||
import com.unciv.models.tilesets.TileSetCache
|
import com.unciv.models.tilesets.TileSetCache
|
||||||
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.ConfirmPopup
|
|
||||||
import com.unciv.ui.screens.basescreen.BaseScreen
|
|
||||||
import com.unciv.ui.components.UncivSlider
|
import com.unciv.ui.components.UncivSlider
|
||||||
import com.unciv.ui.components.WrappableLabel
|
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.brighten
|
||||||
import com.unciv.ui.components.extensions.onChange
|
import com.unciv.ui.components.extensions.onChange
|
||||||
import com.unciv.ui.components.extensions.onClick
|
import com.unciv.ui.components.extensions.onClick
|
||||||
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.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.ui.screens.worldscreen.NotificationsScroll
|
||||||
import com.unciv.utils.Display
|
import com.unciv.utils.Display
|
||||||
import com.unciv.utils.ScreenMode
|
import com.unciv.utils.ScreenMode
|
||||||
@ -39,7 +40,11 @@ fun displayTab(
|
|||||||
|
|
||||||
val settings = optionsPopup.settings
|
val settings = optionsPopup.settings
|
||||||
|
|
||||||
|
add("Screen".toLabel(fontSize = 24)).colspan(2).row()
|
||||||
|
|
||||||
addScreenModeSelectBox(this, settings, optionsPopup.selectBoxMinWidth)
|
addScreenModeSelectBox(this, settings, optionsPopup.selectBoxMinWidth)
|
||||||
|
addScreenSizeSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
||||||
|
|
||||||
|
|
||||||
if (Gdx.app.type == Application.ApplicationType.Desktop) {
|
if (Gdx.app.type == Application.ApplicationType.Desktop) {
|
||||||
optionsPopup.addCheckbox(this, "Map mouse auto-scroll", settings.mapAutoScroll, true) {
|
optionsPopup.addCheckbox(this, "Map mouse auto-scroll", settings.mapAutoScroll, true) {
|
||||||
@ -50,29 +55,36 @@ fun displayTab(
|
|||||||
addScrollSpeedSlider(this, settings, optionsPopup.selectBoxMinWidth)
|
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 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 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 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 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, "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)
|
addUnitIconAlphaSlider(this, settings, optionsPopup.selectBoxMinWidth)
|
||||||
|
|
||||||
addScreenSizeSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
addSeparator()
|
||||||
|
add("Performance".toLabel(fontSize = 24)).colspan(2).row()
|
||||||
addTileSetSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
|
||||||
|
|
||||||
addUnitSetSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
|
||||||
|
|
||||||
addSkinSelectBox(this, settings, optionsPopup.selectBoxMinWidth, onChange)
|
|
||||||
|
|
||||||
optionsPopup.addCheckbox(this, "Continuous rendering", settings.continuousRendering) {
|
optionsPopup.addCheckbox(this, "Continuous rendering", settings.continuousRendering) {
|
||||||
settings.continuousRendering = it
|
settings.continuousRendering = it
|
||||||
|
Reference in New Issue
Block a user