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
                              );
        }
Exemple #2
0
 public void ToggleSideMenuToProficienciesList()
 {
     if (!GetPanel().activeSelf)
     {
         translationUI.ToggleMenuTo(GetComponent <UIController>(), translationUI.SideMenuGroup);
         translationUI.ToggleSelectedSideMenuButton(proficienciesBtn);
     }
     FillDisplayFromDb(DbQueries.GetProficienciesDisplayQry(), ProficienciesList.transform, BuildProficiency);
 }