private void EditBoxCallbackEnterKey(EditBoxWidget edit) { MultiBoxEditBoxWidget.EditBoxCallback enterkeycallback = this.enterkeycallback; if (enterkeycallback == null) { return; } enterkeycallback(this); }
private void EditBoxCallbackOnClick(EditBoxWidget edit) { edit.Text = ""; MultiBoxEditBoxWidget.EditBoxCallback clickkeycallback = this.clickkeycallback; if (clickkeycallback == null) { return; } clickkeycallback(this); }
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); }
public void SetCallbackOnTextAdded(MultiBoxEditBoxWidget.EditBoxCallback func) { onnewtext = func; }
public void SetCallbackOnClick(MultiBoxEditBoxWidget.EditBoxCallback func) { clickkeycallback = func; }
public void SetCallbackEnterKey(MultiBoxEditBoxWidget.EditBoxCallback func) { enterkeycallback = func; }