private void _decideSelectBtn(UIInteriorStoreModeSelect.SelectMode iMode) { SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); this._setBtnEnabled(false); this._setSelectedBtn(iMode); this._clsInput = null; new BaseDialogPopup().Close(base.get_gameObject(), 1f, 1f, 0f, 0f); if (this.delDecideSelectMode != null) { this.delDecideSelectMode(iMode); } }
private void Awake() { this._dicSelectBtn = new Dictionary <UIInteriorStoreModeSelect.SelectMode, UIButton>(); using (IEnumerator enumerator = Enum.GetValues(typeof(UIInteriorStoreModeSelect.SelectMode)).GetEnumerator()) { while (enumerator.MoveNext()) { UIInteriorStoreModeSelect.SelectMode selectMode = (UIInteriorStoreModeSelect.SelectMode)((int)enumerator.get_Current()); this._dicSelectBtn.Add(selectMode, base.get_transform().FindChild(string.Format("Btns/{0}Btn", selectMode)).GetComponent <UIButton>()); this._dicSelectBtn.get_Item(selectMode).onClick.Add(Util.CreateEventDelegate(this, "_decideSelectBtn", selectMode)); } } base.get_gameObject().get_transform().set_localScale(Vector3.get_one()); }
private void _setSelectedBtn(UIInteriorStoreModeSelect.SelectMode nIndex) { using (Dictionary <UIInteriorStoreModeSelect.SelectMode, UIButton> .Enumerator enumerator = this._dicSelectBtn.GetEnumerator()) { while (enumerator.MoveNext()) { KeyValuePair <UIInteriorStoreModeSelect.SelectMode, UIButton> current = enumerator.get_Current(); if (current.get_Key() == nIndex) { current.get_Value().state = UIButtonColor.State.Pressed; } else { current.get_Value().state = UIButtonColor.State.Normal; } } } }