private void SearchNow() { string searchText = "%" + myInput.text + "%"; if (myInput.text == "") { FillDisplayFromDb(searchInfo.GetMyDefaultQuery(), listToSearch.transform, searchInfo.GetMyBuildMethod()); } else { FillDisplayFromDb(searchInfo.GetMySearchQuery(searchText), listToSearch.transform, searchInfo.GetMyBuildMethod(), searchText); } }
public void DisplayTaskResultOptionsRelatedToStartDialogue() { FillDisplayFromDb(newStartDialogueOptionListInfo.GetMyDefaultQuery(), taskResultOptionSelectedList.transform, newStartDialogueOptionListInfo.GetMyBuildMethod()); listSearcher.SetSearchInfo(newStartDialogueOptionListInfo); }
public void InsertTranslation() { DbCommands.InsertTupleToTable("EnglishVocab", inputTranslationEnTxt.text); DbCommands.InsertTupleToTable("WelshVocab", inputTranslationCyTxt.text); DbCommands.InsertTupleToTable("VocabTranslations", inputTranslationEnTxt.text, inputTranslationCyTxt.text); FillDisplayFromDb(vocabListInfo.GetMyDefaultQuery(), vocabTranslationList.transform, vocabListInfo.GetMyBuildMethod()); searchTranslations.text = inputTranslationEnTxt.text; GetComponentInChildren <ListSearcher>().Search(); inputTranslationEnTxt.text = ""; inputTranslationCyTxt.text = ""; }
//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()); }
public void DisplayPartOptionsRelatedToActivateDialogueNode() { print(activateDialogueNodeBtnListInfo); AppendDisplayFromDb(activateDialogueNodeBtnListInfo.GetMyDefaultQuery(), partOptionSelectedList.transform, activateDialogueNodeBtnListInfo.GetMyBuildMethod()); optionBtnListSearcher.SetSearchInfo(activateDialogueNodeBtnListInfo); }
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); }