Esempio n. 1
0
            public MarkerRow(
                Model3DAttachment.MarkerData marker,
                ObservableCollection <Model3DAttachment.MarkerData> markers) : base(marker, markers)
            {
                Layout = new HBoxLayout();
                var markerIdPropEditor = new StringPropertyEditor(
                    new PropertyEditorParams(
                        Header,
                        Source.Marker,
                        nameof(Marker.Id))
                {
                    ShowLabel = false
                });

                markerIdPropEditor.ContainerWidget.MinMaxWidth = AttachmentMetrics.EditorWidth;

                var framePropEditor = new IntPropertyEditor(
                    new PropertyEditorParams(
                        Header,
                        Source.Marker,
                        nameof(Marker.Frame))
                {
                    ShowLabel = false
                });

                var actionPropEditor = new EnumPropertyEditor <MarkerAction>(
                    new PropertyEditorParams(
                        Header,
                        Source.Marker,
                        nameof(Marker.Action))
                {
                    ShowLabel = false
                });

                actionPropEditor.ContainerWidget.MinMaxWidth = AttachmentMetrics.ControlWidth;

                var jumpToPropEditor = new StringPropertyEditor(
                    new PropertyEditorParams(
                        Header,
                        Source.Marker,
                        nameof(Marker.JumpTo))
                {
                    ShowLabel = false
                });

                jumpToPropEditor.ContainerWidget.MinMaxWidth = AttachmentMetrics.ControlWidth;
                Header.AddNode(new BlendingCell(Source, nameof(Model3DAttachment.MarkerData.Blending)));
            }
Esempio n. 2
0
            public MeshRow(Model3DAttachment.MeshOption mesh, ObservableCollection <Model3DAttachment.MeshOption> options) : base(mesh, options)
            {
                Layout  = new VBoxLayout();
                Padding = new Thickness(AttachmentMetrics.Spacing);
                var meshIdPropEditor = new StringPropertyEditor(
                    new PropertyEditorParams(
                        Header,
                        mesh,
                        nameof(Model3DAttachment.MeshOption.Id))
                {
                    ShowLabel = false
                });

                meshIdPropEditor.ContainerWidget.MinMaxWidth = AttachmentMetrics.EditorWidth;

                var cullModePropEditor = new EnumPropertyEditor <CullMode>(
                    new PropertyEditorParams(
                        Header,
                        mesh,
                        nameof(Model3DAttachment.MeshOption.CullMode))
                {
                    ShowLabel = false
                });

                cullModePropEditor.ContainerWidget.MinMaxWidth = AttachmentMetrics.EditorWidth;

                var hitPropEditor = new BooleanPropertyEditor(
                    new PropertyEditorParams(
                        Header,
                        mesh,
                        nameof(Model3DAttachment.MeshOption.HitTestTarget))
                {
                    ShowLabel = false
                });

                hitPropEditor.ContainerWidget.MinMaxWidth = AttachmentMetrics.ControlWidth;
                CompoundPresenter.Add(Presenters.StripePresenter);
            }