void Awake() { dfUnity = DaggerfallUnity.Instance; audioSource = GetComponent <AudioSource>(); audioSource.spatialBlend = 0; dfAudioSource = GetComponent <DaggerfallAudioSource>(); dfSongPlayer = GetComponent <DaggerfallSongPlayer>(); dfPauseOptionsWindow = new DaggerfallPauseOptionsWindow(uiManager); dfCharacterSheetWindow = new DaggerfallCharacterSheetWindow(uiManager); dfInventoryWindow = new DaggerfallInventoryWindow(uiManager); dfControlsWindow = new DaggerfallControlsWindow(uiManager); dfJoystickControlsWindow = new DaggerfallJoystickControlsWindow(uiManager); dfUnityMouseControlsWindow = new DaggerfallUnityMouseControlsWindow(uiManager); dfTravelMapWindow = new DaggerfallTravelMapWindow(uiManager); dfAutomapWindow = new DaggerfallAutomapWindow(uiManager); dfBookReaderWindow = new DaggerfallBookReaderWindow(uiManager); dfQuestJournalWindow = new DaggerfallQuestJournalWindow(uiManager); dfTalkWindow = new DaggerfallTalkWindow(uiManager); dfSpellBookWindow = new DaggerfallSpellBookWindow(uiManager); dfSpellMakerWindow = new DaggerfallSpellMakerWindow(uiManager); dfCourtWindow = new DaggerfallCourtWindow(uiManager); dfExteriorAutomapWindow = new DaggerfallExteriorAutomapWindow(uiManager); dfQuestInspector = new QuestMachineInspectorWindow(uiManager); Questing.Actions.GivePc.OnOfferPending += GivePc_OnOfferPending; SetupSingleton(); }
public string GetPCFollowUpText(DaggerfallTalkWindow.TalkTone talkTone) { int toneIndex = DaggerfallTalkWindow.TalkToneToIndex(talkTone); string followUpString = expandRandomTextRecord(7218 + toneIndex); return(followUpString); }
public string GetPCGreetingText(DaggerfallTalkWindow.TalkTone talkTone) { int toneIndex = DaggerfallTalkWindow.TalkToneToIndex(talkTone); string greetingString = expandRandomTextRecord(7215 + toneIndex); return(greetingString); }
public string GetQuestionText(TalkManager.ListItem listItem, DaggerfallTalkWindow.TalkTone talkTone) { int toneIndex = DaggerfallTalkWindow.TalkToneToIndex(talkTone); string question = ""; currentTalkTone = talkTone; currentKeySubject = listItem.caption; // set key to current caption for now (which is in case of buildings the building name) switch (listItem.questionType) { case QuestionType.NoQuestion: default: break; case QuestionType.News: question = expandRandomTextRecord(7231 + toneIndex); break; case QuestionType.OrganizationInfo: question = "not implemented"; break; case QuestionType.LocalBuilding: currentKeySubjectType = KeySubjectType.Building; currentKeySubjectBuildingKey = listItem.buildingKey; question = expandRandomTextRecord(7225 + toneIndex); break; case QuestionType.Person: question = expandRandomTextRecord(7225 + toneIndex); break; case QuestionType.Thing: question = "not implemented"; break; case QuestionType.Regional: question = "not implemented"; break; case QuestionType.Work: currentKeySubjectType = KeySubjectType.Work; question = expandRandomTextRecord(7212 + toneIndex); break; } return(question); }