コード例 #1
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindFloatTextBox(this.prefsMoverateTextBox, PROP(s => s.Prefs.MoveRate), false);
            binder.BindFloatTextBox(this.prefsViewMoverateTextBox, PROP(s => s.Prefs.ViewRate), false);
            binder.BindIntTextBox(this.prefsUndoTextBox, PROP(s => s.Prefs.UndoCount), false);
            binder.BindTrackBar(this.prefsRotateRateSliderTrackBar, PROP(s => s.Prefs.RotateRateIndex));
            binder.BindLabel(this.tPrefsRotateRateLabel, PROP(s => s.Prefs.RotateRate));
            binder.BindCheckBox(this.prefsAllowobjectoverlapCheckBox, PROP(s => s.Prefs.AllowObjectOverlap), false);
            binder.BindCheckBox(this.prefsUpdatetexalignCheckBox, PROP(s => s.Prefs.UpdateTextureAlignment), false);

            this.labelUndos0Hyph500.Text       = this.labelUndos0Hyph500.Text.Replace("#", EditorSettings.MaximumUndoCount.ToString());
            this.prefsUndoTextBox.MaximumValue = EditorSettings.MaximumUndoCount;
        }