public void SelectSelf() { DisplayComponents(); dialogueNodeVocabListInfo = new ListDisplayInfo( DbQueries.GetVocabQry, BuildVocabPlayerChoice ); list = GetComponentInChildren <VerticalLayoutGroup>().transform; FillDisplayFromDb(dialogueNodeVocabListInfo.GetMyDefaultQuery(), list.transform, BuildVocabPlayerChoice); listSearcher = GetPanel().GetComponentInChildren <ListSearcher>(); listSearcher.SetSearchInfo(dialogueNodeVocabListInfo); }
//int translationSelectInt = 0; void Start() { //TRANSLATIONS UI //translationUI = FindObjectOfType<TranslationUI>().gameObject; //translationUIpanel = translationUI.transform.Find("Panel").gameObject; //adding submitNewTranslation = GetPanel().transform.Find("SubmitNewTranslation").gameObject; activateNewTranslationBtn = submitNewTranslation.transform.Find("ActivateNewTranslationBtn").gameObject; newTranslationPanel = submitNewTranslation.transform.Find("NewTranslationPanel").gameObject; inputTranslationEnTxt = newTranslationPanel.transform.Find("EnglishVocab").GetComponent <InputField>(); inputTranslationCyTxt = newTranslationPanel.transform.Find("WelshVocab").GetComponent <InputField>(); //searching searchTranslations = GetPanel().transform.Find("SearchTranslations").GetComponent <InputField>(); vocabTranslationSelected = "VocabTranslationSelected"; CreateSelectionToggleGroup(vocabTranslationSelected); vocabTranslationList = transform.GetComponentInChildren <VerticalLayoutGroup>().gameObject; vocabListInfo = new ListDisplayInfo(DbQueries.GetTranslationQry, BuildVocabTranslation); GetComponentInChildren <ListSearcher>().SetSearchInfo(vocabListInfo); FillDisplayFromDb(vocabListInfo.GetMyDefaultQuery(), vocabTranslationList.transform, vocabListInfo.GetMyBuildMethod()); }
// Use this for initialization void Start() { questsUI = FindObjectOfType <QuestsUI>(); //PART COMPONENTS partsListUI = FindObjectOfType <TaskPartsListUI>().gameObject; partsListUIPanel = partsListUI.transform.Find("Panel").gameObject; partsList = partsListUIPanel.transform.Find("PartsList").gameObject; //add addPart = partsListUIPanel.transform.Find("AddPart").gameObject; addPartPanel = addPart.transform.Find("AddPartPanel").gameObject; activateAddPartBtn = addPart.transform.Find("ActivateAddPartBtn").gameObject; partOptionSelectedList = addPartPanel.transform.Find("ScrollWindow").Find("OptionSelectedList").gameObject; optionBtnListSearcher = addPartPanel.GetComponentInChildren <ListSearcher>(); selectedTaskPart = "selectedTaskPart"; CreateSelectionToggleGroup(selectedTaskPart); HideNewPartPanel(); activateDialogueNodeBtnListInfo = new ListDisplayInfo( DbQueries.GetTaskPartOptionsActivateDialogueNodeDisplayQry, BuildActivateDialogueNodeOptionBtn); print(activateDialogueNodeBtnListInfo); }
public void SetSearchInfo(ListDisplayInfo searchInfoObj) { ActivateSelf(); searchInfo = searchInfoObj; }
void Start() { taskPartsListUI = GetPanel().transform.Find("TaskPartsListUI").GetComponent <TaskPartsListUI>(); //QUEST COMPONENTS questsListUI = GetPanel().transform.Find("QuestsListUI").gameObject; questsListUIPanel = questsListUI.transform.Find("Panel").gameObject; questsList = questsListUIPanel.transform.Find("QuestsList").gameObject; //add questDetails = questsListUIPanel.transform.Find("QuestDetails").gameObject; questDetailsPanel = questDetails.transform.Find("QuestDetailsPanel").gameObject; activateQuestDetailsBtn = questDetails.transform.Find("ActivateQuestDetailsBtn").gameObject; inputQuestDetailsName = questDetailsPanel.transform.Find("InputNameText").GetComponent <InputField>(); inputQuestDetailsDesc = questDetailsPanel.transform.Find("InputDescriptionText").GetComponent <InputField>(); //TASK COMPONENTS tasksListUI = GetPanel().transform.Find("QuestTasksListUI").gameObject; tasksListUIPanel = tasksListUI.transform.Find("Panel").gameObject; tasksList = tasksListUIPanel.transform.Find("TasksList").gameObject; //add addTask = tasksListUIPanel.transform.Find("AddTask").gameObject; addTaskPanel = addTask.transform.Find("AddTaskPanel").gameObject; activateAddTaskBtn = addTask.transform.Find("ActivateAddTaskBtn").gameObject; inputTaskDescription = addTaskPanel.transform.Find("InputDescriptionText").GetComponent <InputField>(); taskActiveAtStart = addTaskPanel.GetComponentInChildren <Toggle>(); //TASK RESULTS COMPONENTS taskResultsListUI = GetPanel().transform.Find("QuestTaskCompleteResultsUI").gameObject; taskResultsListUIPanel = taskResultsListUI.transform.Find("Panel").gameObject; taskResultsList = taskResultsListUIPanel.transform.Find("ResultsList").gameObject; //add addTaskResult = taskResultsListUIPanel.transform.Find("AddTaskResult").gameObject; addTaskResultPanel = addTaskResult.transform.Find("AddResultPanel").gameObject; activateAddTaskResultBtn = addTaskResult.transform.Find("ActivateAddTaskResultBtn").gameObject; taskResultOptionSelectedList = addTaskResultPanel.transform.Find("ScrollWindow").Find("OptionSelectedList").gameObject; listSearcher = addTaskResultPanel.transform.GetComponentInChildren <ListSearcher>(); FillDisplayFromDb(DbQueries.GetQuestsDisplayQry(), questsList.transform, BuildQuest); selectedQuest = "selectedQuest"; selectedTask = "selectedTask"; selectedTaskResult = "selectedTaskResult"; CreateSelectionToggleGroup(selectedQuest); CreateSelectionToggleGroup(selectedTask); CreateSelectionToggleGroup(selectedTaskResult); newStartDialogueOptionListInfo = new ListDisplayInfo( DbQueries.GetTaskResultOptionsToStartDialogueQry, BuildStartDialogueTaskResultOptionBtn ); newActivateDialogueOptionListInfo = new ListDisplayInfo( DbQueries.GetTaskResultOptionsToStartDialogueQry, BuildActivateDialogueTaskResultOptionBtn ); newEndCombatOptionListInfo = new ListDisplayInfo( DbQueries.GetTaskResultOptionsToEndCombatWithCharQry, BuildEndCombatWithCharTaskResultOptionBtn ); SceneLoader sceneLoader = new SceneLoader(); string currentScene = sceneLoader.GetCurrentSceneName(); InsertWorldItemsNotInDbFromScene(currentScene); HideAddTaskPanel(); HidePartsListUI(); HideTasksListUI(); HideTaskResultsListUI(); }
void Start() { playerChoicesListUI = FindObjectOfType <PlayerChoicesListUI>(); dialogueNodesListUI = GetPanel().GetComponentInChildren <DialogueNodesListUI>(); //choiceResultOptions = new ChoiceResultOptions(); //DIALOGUE COMPONENTS dialoguesListUI = GetPanel().transform.Find("DialoguesListUI").gameObject; dialoguesPanel = dialoguesListUI.transform.Find("Panel").gameObject; dialogueList = dialoguesPanel.transform.Find("ScrollView").Find("DialoguesList").gameObject; mainDialogueListSearcher = dialoguesPanel.GetComponentInChildren <ListSearcher>(); //add submitNewDialogue = dialoguesPanel.transform.Find("SubmitNewDialog").gameObject; newDialoguePanel = submitNewDialogue.transform.Find("NewDialogPanel").gameObject; activateNewDialogueBtn = submitNewDialogue.transform.Find("ActivateNewDialogBtn").gameObject; inputShortDescriptionText = newDialoguePanel.transform.Find("InputShortDescriptionText").GetComponent <InputField>(); dialogueActive = newDialoguePanel.transform.GetComponentInChildren <Toggle>(); //CHARACTER DIALOGUES COMPONENTS charDialoguesListUI = GetPanel().transform.Find("CharDialoguesListUI").gameObject; charDialoguesPanel = charDialoguesListUI.transform.Find("Panel").gameObject; characterList = charDialoguesPanel.transform.Find("CharDialoguesList").gameObject; //add addCharDialoguesUI = charDialoguesPanel.transform.Find("AddCharDialoguesUI").gameObject; addCharDialoguesPanel = addCharDialoguesUI.transform.Find("AddCharDialoguesPanel").gameObject; addCharDialogueList = addCharDialoguesPanel.transform.Find("CharacterList").gameObject; activateAddCharBtn = addCharDialoguesUI.transform.Find("ActivateAddCharBtn").gameObject; //PLAYER CHOICE RESULTS COMPONENTS playerChoiceResultsListUI = GetPanel().transform.Find("PlayerChoiceResultsListUI").gameObject; playerChoiceResultsPanel = playerChoiceResultsListUI.transform.Find("Panel").gameObject; playerChoicesResultsList = playerChoiceResultsPanel.GetComponentInChildren <VerticalLayoutGroup>().gameObject; //add newChoiceResultUI = playerChoiceResultsPanel.transform.Find("NewChoiceResultUI").gameObject; displayNewChoiceResultBtn = newChoiceResultUI.transform.Find("DisplayNewChoiceResultBtn").gameObject; newChoiceResultPanel = newChoiceResultUI.transform.Find("Panel").gameObject; choiceResultOptionsScrollView = newChoiceResultPanel.GetComponentInChildren <ScrollRect>(); selectedResultTypeList = choiceResultOptionsScrollView.transform.Find("SelectedResultTypeList").gameObject; newChoiceResultListSearcher = newChoiceResultPanel.GetComponentInChildren <ListSearcher>(); newActivateWelshVocabListInfo = new ListDisplayInfo( DbQueries.GetNewActivateVocabPlayerChoiceResultQry, BuildNewChoiceResultActivateVocabBtn); newActivateGrammarListInfo = new ListDisplayInfo( DbQueries.GetNewActivateGrammarPlayerChoiceResultQry, BuildNewChoiceResultActivateGrammarBtn); newActivateDialogueListInfo = new ListDisplayInfo( DbQueries.GetNewActivateDialoguePlayerChoiceResultQry, BuildNewChoiceResultActivateDialogueBtn); mainDialogueListInfo = new ListDisplayInfo( DbQueries.GetDialogueDisplayQry, BuildDialogue); //display dialogue list FillDisplayFromDb(mainDialogueListInfo.GetMyDefaultQuery(), dialogueList.transform, mainDialogueListInfo.GetMyBuildMethod()); mainDialogueListSearcher.SetSearchInfo(mainDialogueListInfo); selectedDialogue = "selectedDialogue"; selectedNode = "selectedNode"; selectedChoiceResult = "selectedChoiceResult"; CreateSelectionToggleGroup(selectedDialogue); CreateSelectionToggleGroup(selectedChoiceResult); CreateSelectionToggleGroup(selectedNode); }