Example #1
0
        private static Godot.Node CreateNode(Props props)
        {
            var control = new Godot.LineEdit();

            CopyToNode(control, null, props);
            return(control);
        }
Example #2
0
        private static Godot.Node CreateNode(Props props)
        {
            var control = new Godot.LineEdit();

            CopyToNode(control, null, props);
            Component.RegisterLineEditSignals(control, props);
            return(control);
        }
Example #3
0
 public static void CopyToNode(Godot.LineEdit control, Props?oldProps, Props props)
 {
     ControlComponent.CopyToNode(control, oldProps, props);
     if (control.Text != props.text)
     {
         control.Text = props.text;
     }
 }
Example #4
0
 public static void CopyToNode(Godot.LineEdit control, Props?oldProps, Props props)
 {
     ControlComponent.CopyToNode(control, oldProps, props);
     if (control.Text != props.text)
     {
         control.Text = props.text;
     }
     props.onTextChanged?.Connect(control, "text_changed", oldProps?.onTextChanged);
     props.onTextEntered?.Connect(control, "text_entered", oldProps?.onTextEntered);
 }
Example #5
0
 protected override void SetSceneControl(Godot.Control control)
 {
     base.SetSceneControl(control);
     SceneControl = (Godot.LineEdit)control;
 }
Example #6
0
 public LineEdit(Godot.LineEdit control) : base(control)
 {
 }
Example #7
0
 internal LineEdit(Godot.LineEdit control) : base(control)
 {
 }
Example #8
0
 public LineEdit()
 {
     Base = new _LineEdit(this);
 }