mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-26 15:49:14 +07:00
Re-hide Enable Portrait option on desktop (#6912)
* Re-hide Enable Portrait Option in desktop version * MainMenu Background Map Job cancellable * MainMenu Background Map generation cancellable * MainMenu Background Map cancellable - remove instrumentation * Revert "MainMenu Background Stuff"
This commit is contained in:
@ -40,7 +40,7 @@ fun advancedTab(
|
|||||||
addMaxZoomSlider(this, settings)
|
addMaxZoomSlider(this, settings)
|
||||||
|
|
||||||
val screen = optionsPopup.screen
|
val screen = optionsPopup.screen
|
||||||
if (screen.game.platformSpecificHelper != null) {
|
if (screen.game.platformSpecificHelper != null && Gdx.app.type == Application.ApplicationType.Android) {
|
||||||
optionsPopup.addCheckbox(this, "Enable portrait orientation", settings.allowAndroidPortrait) {
|
optionsPopup.addCheckbox(this, "Enable portrait orientation", settings.allowAndroidPortrait) {
|
||||||
settings.allowAndroidPortrait = it
|
settings.allowAndroidPortrait = it
|
||||||
// Note the following might close the options screen indirectly and delayed
|
// Note the following might close the options screen indirectly and delayed
|
||||||
@ -176,4 +176,4 @@ private fun addSetUserId(table: Table, settings: GameSettings, screen: BaseScree
|
|||||||
}
|
}
|
||||||
table.add(takeUserIdFromClipboardButton).pad(5f).colspan(2).row()
|
table.add(takeUserIdFromClipboardButton).pad(5f).colspan(2).row()
|
||||||
table.add(idSetLabel).colspan(2).row()
|
table.add(idSetLabel).colspan(2).row()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user