Exemplo n.º 1
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindStringTextBox(this.prefsPlayerTextBox, PROP(s => s.Prefs.PlayerProfile), false);
            binder.BindCheckBox(this.prefsUsetexcolorsCheckBox, PROP(s => s.Toggles.UseTexColors), false);
            binder.BindComboBox <InformationLevel>(this.prefsInformationLevelComboBox, PROP(s => s.Prefs.MessageLevel));
            binder.BindCheckBox(this.prefsSplashscreenCheckBox, PROP(s => s.Prefs.ShowSplash), false);
        }
        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;
        }
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindTabControlBacking(this.objectTabControl, PROP(s => s.ActiveObjectTab));
            binder.BindCheckBox(this.objSortCheckBox, PROP(s => s.SavedPrefs.SortObjects), false);
        }
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindCheckBox(this.diagFixbugsCheckBox, PROP(s => s.SavedPrefs.AutoFixBugs), false);

            diagStatsListView.ListViewItemSorter = null;
        }