예제 #1
0
        private void EditBoxCallbackEnterKey(EditBoxWidget edit)
        {
            MultiBoxEditBoxWidget.EditBoxCallback enterkeycallback = this.enterkeycallback;
            if (enterkeycallback == null)
            {
                return;
            }

            enterkeycallback(this);
        }
예제 #2
0
        private void EditBoxCallbackOnClick(EditBoxWidget edit)
        {
            edit.Text = "";
            MultiBoxEditBoxWidget.EditBoxCallback clickkeycallback = this.clickkeycallback;
            if (clickkeycallback == null)
            {
                return;
            }

            clickkeycallback(this);
        }
예제 #3
0
        private void EditBoxCallbackEnterKeyOnTextAdded(EditBoxWidget edit)
        {
            if (edit.Text.Length == edit.MAX_CHARS)
            {
                var num = edit.ID - 1000;
                if (num < editboxes.Length - 1)
                {
                    host.SetFocus(editboxes[num + 1]);
                }
            }
            MultiBoxEditBoxWidget.EditBoxCallback onnewtext = this.onnewtext;
            if (onnewtext == null)
            {
                return;
            }

            onnewtext(this);
        }
예제 #4
0
 public void SetCallbackOnTextAdded(MultiBoxEditBoxWidget.EditBoxCallback func)
 {
     onnewtext = func;
 }
예제 #5
0
 public void SetCallbackOnClick(MultiBoxEditBoxWidget.EditBoxCallback func)
 {
     clickkeycallback = func;
 }
예제 #6
0
 public void SetCallbackEnterKey(MultiBoxEditBoxWidget.EditBoxCallback func)
 {
     enterkeycallback = func;
 }