private void InitBulletStyleDropdown() { RectTransform tf = _viewTf.Find("Panel/Window/BulletStyle").GetComponent <RectTransform>(); _styleDropdown = tf.Find("Dropdown").GetComponent <DropdownExtend>(); _styleEditBtn = tf.Find("EditBtn").gameObject; _styleText = tf.Find("Dropdown/Label").GetComponent <Text>(); UIEventListener.Get(_styleEditBtn).AddClick(OnStyleEditBtnClickHandler); }
private void InitBulletBlendModeDropdown() { RectTransform tf = _viewTf.Find("Panel/Window/BulletBlendMode").GetComponent <RectTransform>(); _blendModeDropdown = tf.Find("Dropdown").GetComponent <DropdownExtend>(); _blendText = tf.Find("Dropdown/Label").GetComponent <Text>(); List <Dropdown.OptionData> optionList = new List <Dropdown.OptionData>(); optionList.Add(new Dropdown.OptionData(eBlendMode.Normal.ToString())); optionList.Add(new Dropdown.OptionData(eBlendMode.SoftAdditive.ToString())); _blendModeDropdown.options = optionList; _blendModeDropdown.onValueChanged.AddListener(OnBlendModeDropdownValueChangedHandler); }