public void ToggleSideMenuToTagsList() { if (!GetPanel().activeSelf) { translationUI.ToggleMenuTo(GetComponent <UIController>(), translationUI.SideMenuGroup); translationUI.ToggleSelectedSideMenuButton(tagsListBtn); } Translation translation = (Translation)(vocabTranslationListUI.GetSelectedItemFromGroup(vocabTranslationListUI.VocabTranslationSelected)); string eng, cym; if (translation == null) { eng = cym = null; } else { eng = translation.CurrentEnglish; cym = translation.CurrentWelsh; } FillDisplayFromDb(DbQueries.GetTaggedVocabDisplayQry(eng, cym), tagsList.transform, BuildTag, eng, cym ); }
public void ToggleSideMenuToGrammarList() { if (!GetPanel().activeSelf) { print("panelactive"); translationUI.ToggleMenuTo(GetComponent <UIController>(), translationUI.SideMenuGroup); proficienciesListUI.ProficienciesBtn.colors.normalColor.Equals(Colours.colorDataUIbtn); grammarRulesBtn.colors.normalColor.Equals(Colours.colorDataUItxt); } Translation translation = (Translation)(vocabTranslationListUI.GetSelectedItemFromGroup(vocabTranslationListUI.VocabTranslationSelected)); string eng, cym; if (translation == null) { eng = cym = null; } else { eng = translation.CurrentEnglish; cym = translation.CurrentWelsh; } FillDisplayFromDb(DbQueries.GetGrammarRuleDisplayQry(eng, cym), grammarList.transform, BuildRule, eng, cym ); }
public void ToggleSideMenuToProficienciesList() { if (!GetPanel().activeSelf) { translationUI.ToggleMenuTo(GetComponent <UIController>(), translationUI.SideMenuGroup); translationUI.ToggleSelectedSideMenuButton(proficienciesBtn); } FillDisplayFromDb(DbQueries.GetProficienciesDisplayQry(), ProficienciesList.transform, BuildProficiency); }