Ejemplo n.º 1
0
        public void onPersonCountPageIndexChange(int nPageIndex, ListViewItem component)
        {
            if (component == null)
            {
                return;
            }
            m_CurPersonCountIndex = nPageIndex;
            ComboboxSampleListViewData comBoxData = PersonCountComboboxList.DataSource[nPageIndex];

            if (!m_CurMatchTypeInfo.ContainsKey(comBoxData.ComboboxText))
            {
                return;
            }

            m_CurSelectMatchType = (int)m_CurMatchTypeInfo[comBoxData.ComboboxText];
        }
Ejemplo n.º 2
0
        public void UpdateComboBox(SSchemeMatchRoomCustomer sInfo)
        {
            string[] PersonCountArrayStr = sInfo.strPersonCountListDes.Split(';');
            string[] MatchTypeList       = sInfo.strMatchTypeList.Split(';');
            if (MatchTypeList.Length != PersonCountArrayStr.Length)
            {
                Trace.LogError("配置出错 请检查 MatchRoomCustomer.csv!!!");
            }
            m_CurMatchTypeInfo.Clear();

            PersonCountComboboxList.DataSource.Clear();
            PersonCountComboboxList.OnSelect.RemoveListener(onPersonCountPageIndexChange);
            for (int i = 0; i < MatchTypeList.Length; ++i)
            {
                ComboboxSampleListViewData comBoxData = new ComboboxSampleListViewData();
                comBoxData.ComboboxText = PersonCountArrayStr[i];
                m_CurMatchTypeInfo[PersonCountArrayStr[i]] = Convert.ToInt32(MatchTypeList[i]);
                PersonCountComboboxList.Add(comBoxData);
            }
            PersonCountComboboxList.OnSelect.AddListener(onPersonCountPageIndexChange);
            PersonCountComboboxList.Select(0);
        }
Ejemplo n.º 3
0
        public void SetMultilanguage()
        {
            if (sCream != "")
            {
                return;
            }

            var comboboxSampleListView = RuneComboboxList.GetComponent <ComboboxSampleListView>();

            for (int i = 0; i < nComBoxMax; i++)
            {
                ComboboxSampleListViewData comBoxData = new ComboboxSampleListViewData();
                comBoxData.ComboboxText = ULocalizationService.Instance.Get("UIView", "RuneView", "ComBox" + (i + 1));
                comboboxSampleListView.Add(comBoxData);
            }

            comboboxSampleListView.SelectedIndex = 0;

            sCream   = ULocalizationService.Instance.Get("UIView", "RuneView", "Cream");
            sHalMark = ULocalizationService.Instance.Get("UIView", "RuneView", "HalMark");
            sGlyph   = ULocalizationService.Instance.Get("UIView", "RuneView", "Glyph");
            sSigil   = ULocalizationService.Instance.Get("UIView", "RuneView", "Sigil");
        }