예제 #1
0
        public override void _Ready()
        {
            _backColorRect  = this.GetNodeFromPath <ColorRect>(_backColorRectPath);
            _majorColorRect = this.GetNodeFromPath <ColorRect>(_majorColorRectPath);
            _minorColorRect = this.GetNodeFromPath <ColorRect>(_minorColorRectPath);
            _graphNavToggle = this.GetNodeFromPath <CheckBox>(_graphNavTogglePath);
            _autoToggle     = this.GetNodeFromPath <CheckBox>(_autoTogglePath);
            _autoDelay      = this.GetNodeFromPath <SpinBox>(_autoDelayPath);

            _backColorRect.Connect("gui_input", this, nameof(GetBackgroundColor));
            _majorColorRect.Connect("gui_input", this, nameof(GetMajorColor));
            _minorColorRect.Connect("gui_input", this, nameof(GetMinorColor));

            Connect("about_to_show", this, nameof(OnPrep));
            Connect("confirmed", this, nameof(OnConfirm));
        }