// Use this for initialization void Start() { translationUI = FindObjectOfType <TranslationUI>(); vocabTranslationListUI = FindObjectOfType <VocabTranslationListUI>(); tagsListBtn = transform.Find("TagsListBtn").GetComponent <Button>(); tagsList = GetPanel().GetComponentInChildren <GridLayoutGroup>().gameObject; tagDetails = GetPanel().transform.Find("SubmitTagDetails").gameObject; tagDetailsBtn = tagDetails.GetComponentInChildren <Button>(); tagDetailsBtnText = tagDetailsBtn.GetComponentInChildren <Text>(); tagDetailsInput = tagDetails.transform.Find("Panel").GetComponentInChildren <InputField>(); selectedTag = "SelectedTag"; CreateSelectionToggleGroup(selectedTag); }
void Start() { proficienciesBtn = transform.Find("ProficienciesBtn").GetComponent <Button>(); translationUI = FindObjectOfType <TranslationUI>(); //PROFICIENCIES UI proficienciesList = GetPanel().GetComponentInChildren <GridLayoutGroup>().gameObject; //adding submitNewProficiency = GetPanel().transform.Find("SubmitNewProficiency").gameObject; newProficiencyPanel = submitNewProficiency.transform.Find("NewProficiencyPanel").gameObject; activateNewProficiencyBtn = submitNewProficiency.transform.Find("ActivateNewProficiencyBtn").gameObject; inputProficiencyTxt = newProficiencyPanel.transform.Find("InputProficiency").GetComponent <InputField>(); inputThresholdTxt = newProficiencyPanel.transform.Find("ThresholdInput").GetComponent <InputField>(); selectedProficiency = "SelectedProficiency"; CreateSelectionToggleGroup(selectedProficiency); }
void Start() { vocabTranslationListUI = FindObjectOfType <VocabTranslationListUI>(); grammarRulesBtn = transform.Find("GrammarRulesBtn").gameObject.GetComponent <Button>(); proficienciesListUI = FindObjectOfType <ProficienciesListUI>(); grammarListUIpanel = transform.Find("Panel").gameObject; grammarList = grammarListUIpanel.GetComponentInChildren <GridLayoutGroup>().gameObject; //adding and editing submitNewGrammarRule = grammarListUIpanel.transform.Find("SubmitNewRule").gameObject; activateGrammarDetailsBtn = submitNewGrammarRule.transform.Find("ActivateNewRuleBtn").gameObject; newGrammarRulePanel = submitNewGrammarRule.transform.Find("NewRulePanel").gameObject; inputRuleSdescTxt = newGrammarRulePanel.transform.Find("InputShortDescriptionText").GetComponent <InputField>(); inputRuleLdescTxt = newGrammarRulePanel.transform.Find("InputLongDescriptionText").GetComponent <InputField>(); viewGrammarDetailsBtnText = activateGrammarDetailsBtn.GetComponent <Text>(); translationUI = FindObjectOfType <TranslationUI>(); selectedGrammarRule = "SelectedGrammarRule"; CreateSelectionToggleGroup(selectedGrammarRule); }