Example #1
0
        // Constructors

        public ShapePropertiesCon(WorldCon worldCon) : base(worldCon)
        {
            AppCon.InitControlTheme(ShapePropertiesEdit.SelectionToolbar);
            _selectionCon = new SelectionCon(worldCon);
            InitCommonControls(ShapePropertiesEdit.TableLayoutPanel);
            InitLocalControls();
        }
Example #2
0
        // Constructors

        public SignalCon(WorldCon worldCon, Signal signal) : base(worldCon)
        {
            if (signal == null)
            {
                throw new ArgumentNullException(nameof(signal));
            }
            SignalEdit          = new SignalEdit();
            Index               = Scene.Signals.IndexOf(signal);
            NameEditor.AutoSize = true;
            NameEditor.Text     = signal.Name;
            InitRanges(signal);
            InitSlider(AmplitudeSlider, AmpGaugeMin, AmpGaugeMax, AmpGaugeSmall, AmpGaugeLarge, AmplitudeToGauge(signal.Amplitude));
            InitSlider(FrequencySlider, FreqGaugeMin, FreqGaugeMax, FreqGaugeSmall, FreqGaugeLarge, FrequencyToGauge(signal.Frequency));
            SignalsForm.AddButton.CloneTo(SignalEdit.WaveTypeButton, ToolStripCloneOptions.None);
            AppCon.InitControlTheme(Toolbar);
            UpdateAllProperties();
        }
Example #3
0
        // Constructors

        protected CodeCon(WorldCon worldCon) : base(worldCon)
        {
            LoadShaderCode();
            AppCon.InitControlTheme(CodeEdit.HorizontalToolbar, CodeEdit.VerticalToolbar, CodeEdit.PopupEditMenu);
            ShowRuler       = false;
            ShowLineNumbers = false;
            ShowDocumentMap = false;
            SplitType       = SplitType.None;
            var items = CodeEdit.tbShader.DropDownItems;

            items[0].Tag = ShaderType.VertexShader;
            items[1].Tag = ShaderType.TessControlShader;
            items[2].Tag = ShaderType.TessEvaluationShader;
            items[3].Tag = ShaderType.GeometryShader;
            items[4].Tag = ShaderType.FragmentShader;
            items[5].Tag = ShaderType.ComputeShader;
        }
Example #4
0
 private SignalsForm NewSignalsForm()
 {
     _signalsForm = new SignalsForm
     {
         TabText     = Resources.SignalsForm_TabText,
         Text        = Resources.SignalsForm_Text,
         ToolTipText = Resources.SignalsForm_Text
     };
     Init(_signalsForm.AddButton, WaveType.Constant);
     Init(_signalsForm.WaveTypeSlider, WaveType.Constant);
     Init(_signalsForm.WaveTypeSine, WaveType.Sine);
     Init(_signalsForm.WaveTypeSquare, WaveType.Square);
     Init(_signalsForm.WaveTypeTriangle, WaveType.Triangle);
     Init(_signalsForm.WaveTypeRampUp, WaveType.RampUp);
     Init(_signalsForm.WaveTypeRampDown, WaveType.RampDown);
     AppCon.InitControlTheme(Toolbar);
     return(_signalsForm);
 }
Example #5
0
 private void InitControlTheme() => AppCon.InitControlTheme(
     WorldPanel,
     WorldForm.MainMenu,
     WorldForm.PopupMenu,
     WorldForm.Toolbar,
     WorldForm.StatusBar);