Resolved #898 - added option to disable tutorials
This commit is contained in:
parent
d9bd0fa6b8
commit
3b9ab43bbe
4 changed files with 11 additions and 0 deletions
|
@ -329,4 +329,7 @@
|
|||
French:"Bouger les unités en un seul click"
|
||||
}
|
||||
|
||||
"Show tutorials":{
|
||||
}
|
||||
|
||||
}
|
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue