Пример #1
0
        public override void Draw(IPlatformDrawer platform, float scale)
        {
            if (CustomDrawer != null)
            {
                CustomDrawer.Draw(platform, scale, this);
            }
            else
            {
                Rect inspBounds;
                if (ViewModel.InspectorType == InspectorType.GraphItems)
                {
                    inspBounds = Bounds.WithHeight(30).CenterInsideOf(Bounds);
                }
                else if (ViewModel.InspectorType == InspectorType.TextArea)
                {
                    inspBounds = Bounds.WithHeight(60).CenterInsideOf(Bounds);
                }
                else
                {
                    inspBounds = Bounds.WithHeight(17).CenterInsideOf(Bounds);
                }

                platform.DrawPropertyField(inspBounds.Pad(7, 0, 14, 0), this.ViewModel, scale);
            }
        }