コード例 #1
0
        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
                              );
        }
コード例 #2
0
        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
                              );
        }