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

            binder.BindCheckBoxFlag <TextureFilters>(this.txtGrayRockCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.GrayRock, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtBrownRockCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.BrownRock, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtRedRockCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.RedRock, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtYellowRockCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.YellowRock, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtGreenRockCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.GreenRock, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtBlueRockCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.BlueRock, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtIceCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Ice, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtSandCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Sand, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtGrassCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Grass, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtStonesCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Stones, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtWaterCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Water, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtLavaCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Lava, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtSteelCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Steel, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtConcreteCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Concrete, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtTarmacCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Tarmac, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtBrickCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Brick, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtWallCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Wall, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtFloorCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Floor, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtCeilingCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Ceiling, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtGrateCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Grate, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtFanCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Fan, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtLightCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Light, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtEnergyCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Energy, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtForcefieldCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Forcefield, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtTechCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Tech, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtLabelCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Label, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtMonitorCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Monitor, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtStripesCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Stripes, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtDoorCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Door, false);
            binder.BindCheckBoxFlag <TextureFilters>(this.txtSwitchCheckBox, PROP(s => s.SavedPrefs.TextureFilters), TextureFilters.Switch, false);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

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

            diagStatsListView.ListViewItemSorter = null;
        }
コード例 #4
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);
        }
コード例 #5
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);
        }
コード例 #6
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindRadioButton(this.prefsLayout0RadioButton, PROP(s => s.Prefs.ActiveLayout), LayoutOrientation.HORIZONTAL);
            binder.BindRadioButton(this.prefsLayout1RadioButton, PROP(s => s.Prefs.ActiveLayout), LayoutOrientation.VERTICAL);
            binder.BindRadioButton(this.prefsLayout2RadioButton, PROP(s => s.Prefs.ActiveLayout), LayoutOrientation.FLOATING);
            binder.BindRadioButton(this.prefsLayout3RadioButton, PROP(s => s.Prefs.ActiveLayout), LayoutOrientation.VERTICAL_SS);
        }
コード例 #7
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;
        }
コード例 #8
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            prefsViewdistTrackBar.Maximum = EditorSettings.MaximumMineRenderDepth;

            binder.BindRadioButton(this.prefsRenderer3RdPersonRadioButton, PROP(s => s.Prefs.Perspective), PerspectiveMode.ThirdPerson);
            binder.BindRadioButton(this.prefsRenderer3RdPersonRadioButton, PROP(s => s.Prefs.Perspective), PerspectiveMode.FirstPerson);
            binder.BindRadioButton(this.prefsDepthOffRadioButton, PROP(s => s.Prefs.DepthPerception), DetailLevel.None);
            binder.BindRadioButton(this.prefsDepthLowRadioButton, PROP(s => s.Prefs.DepthPerception), DetailLevel.Low);
            binder.BindRadioButton(this.prefsDepthMediumRadioButton, PROP(s => s.Prefs.DepthPerception), DetailLevel.Medium);
            binder.BindRadioButton(this.prefsDepthHighRadioButton, PROP(s => s.Prefs.DepthPerception), DetailLevel.High);
            binder.BindComboBox <MineCenterDisplayShape>(this.prefsMinecenterComboBox, PROP(s => s.Prefs.MineCenterDisplay));
            binder.BindTrackBar(this.prefsViewdistTrackBar, PROP(s => s.Prefs.ViewDepth));
        }
コード例 #9
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindCheckBoxFlag <GeometryVisibilityFlags>(this.prefsViewWallsCheckBox, PROP(s => s.SavedPrefs.GeometryVisibility), GeometryVisibilityFlags.Walls, false);
            binder.BindCheckBoxFlag <GeometryVisibilityFlags>(this.prefsViewSpecialCheckBox, PROP(s => s.SavedPrefs.GeometryVisibility), GeometryVisibilityFlags.SpecialSegments, false);
            binder.BindCheckBoxFlag <GeometryVisibilityFlags>(this.prefsViewLightsCheckBox, PROP(s => s.SavedPrefs.GeometryVisibility), GeometryVisibilityFlags.Lights, false);
            binder.BindCheckBoxFlag <GeometryVisibilityFlags>(this.prefsViewShadingCheckBox, PROP(s => s.SavedPrefs.GeometryVisibility), GeometryVisibilityFlags.Shading, false);
            binder.BindCheckBoxFlag <GeometryVisibilityFlags>(this.prefsViewDeltalightsCheckBox, PROP(s => s.SavedPrefs.GeometryVisibility), GeometryVisibilityFlags.DeltaShading, false);
            binder.BindCheckBoxFlag <GeometryVisibilityFlags>(this.prefsViewHideTaggedCheckBox, PROP(s => s.SavedPrefs.GeometryVisibility), GeometryVisibilityFlags.HideMarked, false);
            binder.BindCheckBoxFlag <GeometryVisibilityFlags>(this.prefsViewSkyboxCheckBox, PROP(s => s.SavedPrefs.GeometryVisibility), GeometryVisibilityFlags.SkyBox, false);
            binder.BindCheckBoxFlag <TextureVisibilityFlags>(this.prefsViewAlltexturesCheckBox, PROP(s => s.SavedPrefs.TextureVisibility), TextureVisibilityFlags.UsedTextures, false);

            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewRobotsCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Robots, false);
            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewPlayersCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Players, false);
            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewWeaponsCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Weapons, false);
            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewPowerupsCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Powerups, false);
            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewKeysCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Keys, false);
            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewHostagesCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Hostages, false);
            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewReactorCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Reactor, false);
            binder.BindCheckBoxFlag <ObjectVisibilityFlags>(this.prefsViewEffectsCheckBox, PROP(s => s.SavedPrefs.ObjectVisibility), ObjectVisibilityFlags.Effects, false);
        }
コード例 #10
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindComboBox(this.segmentIdComboBox,
                                PROP(s => s.Level.Segments.Items), PROP(s => s.CurrentSelection.Segment));
            binder.BindComboBox <SegFunction>(this.segmentFunctionComboBox,
                                              PROP(s => s.CurrentSelection.Segment.Function));
            binder.BindRadioButton(this.segmentSide1RadioButton, PROP(s => s.CurrentSelection.SideNum), 0);
            binder.BindRadioButton(this.segmentSide2RadioButton, PROP(s => s.CurrentSelection.SideNum), 1);
            binder.BindRadioButton(this.segmentSide3RadioButton, PROP(s => s.CurrentSelection.SideNum), 2);
            binder.BindRadioButton(this.segmentSide4RadioButton, PROP(s => s.CurrentSelection.SideNum), 3);
            binder.BindRadioButton(this.segmentSide5RadioButton, PROP(s => s.CurrentSelection.SideNum), 4);
            binder.BindRadioButton(this.segmentSide6RadioButton, PROP(s => s.CurrentSelection.SideNum), 5);
            binder.BindRadioButton(this.segmentPoint1RadioButton, PROP(s => s.CurrentSelection.PointNum), 0);
            binder.BindRadioButton(this.segmentPoint2RadioButton, PROP(s => s.CurrentSelection.PointNum), 1);
            binder.BindRadioButton(this.segmentPoint3RadioButton, PROP(s => s.CurrentSelection.PointNum), 2);
            binder.BindRadioButton(this.segmentPoint4RadioButton, PROP(s => s.CurrentSelection.PointNum), 3);
            binder.BindFloatTextBox(this.segmentPointxTextBox, PROP(s => s.CurrentSelection.Point.X), false);
            binder.BindFloatTextBox(this.segmentPointyTextBox, PROP(s => s.CurrentSelection.Point.Y), false);
            binder.BindFloatTextBox(this.segmentPointzTextBox, PROP(s => s.CurrentSelection.Point.Z), false);
        }
コード例 #11
0
        protected override void SetupControls()
        {
            EditorStateBinder binder = EditorStateBinder.FromState(this.EditorState);

            binder.BindTabControlBacking(this.toolTabTabControl, PROP(s => s.ActiveSettingsTab));
        }