コード例 #1
0
 internal void RenameOption(DropDownMultiSelectOption data, string arg0)
 {
     if (data.name != arg0)
     {
         OnOptionRenamed.Invoke(data.name, arg0);
     }
 }
コード例 #2
0
        private void OnAdd(string name)
        {
            var option = new DropDownMultiSelectOption();

            option.name = name;
            options.Add(option.name, option);

            AddOptionToDropDown(option);
        }
コード例 #3
0
        private void AddOptionToDropDown(DropDownMultiSelectOption option)
        {
            option.parent     = this;
            option.gameObject = Instantiate(template);
            option.gameObject.SetActive(true);
            option.gameObject.transform.SetParent(scrollViewContent.transform, false);

            option.behaviour      = option.gameObject.GetComponent <DropDownMultiSelectOptionBehaviour>();
            option.behaviour.data = option;

            option.behaviour.UpdateWithData();
        }
コード例 #4
0
 public void DeleteOption(DropDownMultiSelectOption option)
 {
     OnOptionRemoved.Invoke(option.name);
 }