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

            CopyToNode(control, null, props);
            return(control);
        }
 private void CreateResult()
 {
     GetNode <Godot.Control>(_starPath).Visible = true;
     Godot.Label resultLabel = GetNode <Godot.Label>(_resultLabelPath);
     if (_regularOperation.Result == 0)
     {
         _openedLesson.SetAndSaveStars(0);
         resultLabel.Text = "0 Stars";
     }
     else if (_startOpen.Result == 0 || _startPassing.Result == 0)
     {
         _openedLesson.SetAndSaveStars(1);
         resultLabel.Text = "1 Star";
     }
     else if (_noiseAndBlackout.Result == 0)
     {
         _openedLesson.SetAndSaveStars(2);
         resultLabel.Text = "2 Stars!";
     }
     else
     {
         _openedLesson.SetAndSaveStars(3);
         resultLabel.Text = "3 Stars! Nice!";
     }
 }
Example #3
0
        public static Godot.Node CreateNode(Props props)
        {
            var control = new Godot.Label();

            CopyToNode(control, null, props);
            Component.RegisterLabelSignals(control, props);
            return(control);
        }
Example #4
0
 internal Label(Godot.Label control) : base(control)
 {
 }
Example #5
0
 public static void CopyToNode(Godot.Label control, Props?oldProps, Props props)
 {
     ControlComponent.CopyToNode(control, oldProps, props);
     control.Text = props.text;
 }
Example #6
0
 public Label(Godot.Label control) : base(control)
 {
 }
Example #7
0
 public Label()
 {
     Base = new _Label(this);
 }