Resolved #898 - added option to disable tutorials

This commit is contained in:
Yair Morgenstern 2019-06-24 06:43:51 +03:00
parent d9bd0fa6b8
commit 3b9ab43bbe
4 changed files with 11 additions and 0 deletions

View file

@ -329,4 +329,7 @@
French:"Bouger les unités en un seul click"
}
"Show tutorials":{
}
}

View file

@ -14,6 +14,7 @@ class GameSettings {
var soundEffectsVolume = 0.5f
var turnsBetweenAutosaves = 1
var tileSet:String = "FantasyHex"
var showTutorials: Boolean = true
fun save(){
GameSaver().setGeneralSettings(this)

View file

@ -26,6 +26,7 @@ class Tutorials{
fun displayTutorials(name: String, stage: Stage) {
if (UnCivGame.Current.settings.showTutorials) return
if (UnCivGame.Current.settings.tutorialsShown.contains(name)) return
val texts = getTutorials(name, UnCivGame.Current.settings.language)
tutorialTexts.add(Tutorial(name,texts))

View file

@ -62,6 +62,12 @@ class WorldScreenOptionsTable(screen:WorldScreen) : PopupTable(screen){
update()
}
add("Show tutorials".toLabel())
addButton(if(settings.showTutorials) "Yes".tr() else "No".tr()) {
settings.showTutorials= !settings.showTutorials
update()
}
addLanguageSelectBox()
addResolutionSelectBox()