public static void UpdateTutorialFlags() { //if (PlayerKnowledgeDatabase.IsComplete(introductionDef)) // PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Introduction); if (PlayerKnowledgeDatabase.IsComplete(motivationDef)) { PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Motivation); } if (PlayerKnowledgeDatabase.IsComplete(managementDef)) { PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Managment); } if (PlayerKnowledgeDatabase.IsComplete(timetableDef)) { PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Timetable); } if (PlayerKnowledgeDatabase.IsComplete(growingDef)) { PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Growing); } if (PlayerKnowledgeDatabase.IsComplete(treatmentDef)) { PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Treatment); } }
public static void Introduction() { //TryActivateTutorial(introductionDef, OpportunityType.Important); if (!PrisonLaborPrefs.HasTutorialFlag(TutorialFlag.Introduction)) { TutorialWindow.Show("Introduction"); PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Introduction); PrisonLaborPrefs.Save(); } }
public static void LaborAreaWarning() { if (!PrisonLaborPrefs.HasTutorialFlag(TutorialFlag.LaborAreaWarning)) { Find.WindowStack.Add( new Dialog_MessageBox( "PrisonLabor_LaborAreaWarning".Translate(), "PrisonLabor_DontShowAgain".Translate(), () => { PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.LaborAreaWarning); PrisonLaborPrefs.Save(); } )); } }