public override void _Ready() { InitVignette(); var btHolder = new HBoxContainer(); btHolder.MarginTop = btHolder.MarginLeft = 20; btHolder.AddConstantOverride("separation", 20); AddChild(btHolder); colorBt.Connect("color_changed", this, nameof(OnNewColorPicked)); colorBt.Color = flashColor; colorBt.RectMinSize = new Vector2(100, 20); btHolder.AddChild(colorBt); var rateSlider = new HSlider(); rateSlider.RectMinSize = new Vector2(200, 20); rateSlider.MaxValue = 70; rateSlider.Value = rate; rateSlider.Connect("value_changed", this, nameof(OnNewRatePicked)); btHolder.AddChild(rateSlider); }