Example #1
0
 public CreateView()
 {
     searchField = new SearchFieldDrawer();
     searchField.onValueChange += (str) => {
         keySearchStr = str;
     };
 }
Example #2
0
 public GroupByKeyView()
 {
     SearchField = new SearchFieldDrawer();
     SearchField.onValueChange += (str) =>
     {
         searchStr = str;
     };
 }
Example #3
0
 private void OnEnable()
 {
     sear = new SearchFieldDrawer()
     {
         value = "",
     };
     sear.onValueChange += (str) => { search = str; };
 }
Example #4
0
        public ToolBarSearchField(Action <string> onValueChange, string value, int width = 100, Func <bool> canshow = null) : base(null, width, canshow)
        {
            this.onValueChange = onValueChange;
            s = new SearchFieldDrawer("", null, 0);

            s.onValueChange += (str) => {
                if (this.onValueChange != null)
                {
                    this.onValueChange(str);
                }
                value = str;
            };
        }
Example #5
0
            public override void OnEnable()
            {
                searcher = new SearchFieldDrawer("", null, 0);

                searcher.onEndEdit += (str) =>
                {
                    searchText_module = str;
                    if (!EditorApplication.isPlaying)
                    {
                        return;
                    }
                    moudle = Framework.env1.modules.FindModule <UIModule>(str);
                    if (moudle == null)
                    {
                        EditorWindow.focusedWindow.ShowNotification(new GUIContent("Not Find,Moudle Must Bind Framework First"));
                    }
                };
            }
Example #6
0
 public GroupView()
 {
     search = new SearchFieldDrawer("", Enum.GetNames(typeof(SearchType)), 0);
     search.onModeChange  += (value) => { _searchType = (SearchType)value; };
     search.onValueChange += (value) => { _search = value; };
 }