Example #1
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindStringTextBox(this.prefsPathD1PigTextBox, PROP(s => s.Prefs.D1PIGPath), false);
            binder.BindStringTextBox(this.prefsPathD2PigTextBox, PROP(s => s.Prefs.D2PIGPath), false);
            binder.BindStringTextBox(this.prefsPathMissionsTextBox, PROP(s => s.Prefs.LevelsPath), false);
        }
Example #2
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);
        }