void SetBiographyWindow() { createCharBiographyWindow = new CreateCharBiography(uiManager, characterDocument); createCharBiographyWindow.OnClose += CreateCharBiographyWindow_OnClose; createCharBiographyWindow.ClassIndex = characterDocument.classIndex; wizardStage = WizardStages.BiographyQuestions; uiManager.PushWindow(createCharBiographyWindow); }
void SetChooseBioWindow() { if (createCharChooseBioWindow == null) { createCharChooseBioWindow = new CreateCharChooseBio(uiManager, createCharRaceSelectWindow); createCharChooseBioWindow.OnClose += CreateCharChooseBioWindow_OnClose; } // Reset biography window in case user already answered it then cancelled createCharBiographyWindow = null; wizardStage = WizardStages.SelectBiographyMethod; uiManager.PushWindow(createCharChooseBioWindow); }
void SetBiographyWindow() { if (createCharBiographyWindow == null) { if (!characterDocument.isCustom) { characterDocument.classIndex = createCharClassSelectWindow.SelectedClassIndex; } createCharBiographyWindow = new CreateCharBiography(uiManager, characterDocument); createCharBiographyWindow.OnClose += CreateCharBiographyWindow_OnClose; } createCharBiographyWindow.ClassIndex = characterDocument.classIndex; wizardStage = WizardStages.BiographyQuestions; uiManager.PushWindow(createCharBiographyWindow); }