private void ContentGUI()
 {
     this.FloatField("Value", ref slider.value)
     .FloatField("Start Value", ref slider.startValue)
     .FloatField("End Value", ref slider.endValue);
     sliderDrawer.OnGUI();
     thumbDrawer.OnGUI();
 }
Beispiel #2
0
 private void ContentGUI()
 {
     using (new EditorGUI.DisabledScope(true)) EditorGUILayout.RectField("Perfect Content Rect", ele.perfectContentRect);
     ele.contentRect          = EditorGUILayout.RectField("Content Rect", ele.contentRect);
     ele.alwaysShowHorizontal = EditorGUILayout.Toggle("Always Show Horizontal", ele.alwaysShowHorizontal);
     ele.alwaysShowVertical   = EditorGUILayout.Toggle("Always Show Vertical", ele.alwaysShowVertical);
     ele.value = EditorGUILayout.Vector2Field("Value", ele.value);
     HstyleDrawer.OnGUI();
     VstyleDrawer.OnGUI();
 }
Beispiel #3
0
        private void ContentGUI()
        {
            this.ObjectField("Image", ref ele.image, false)
            .Pan(() => { ele.mode = (ScaleMode)EditorGUILayout.EnumPopup("Mode", ele.mode); })

            .Toggle("Alpha Blend", ref ele.alphaBlend)
            .FloatField("Image Aspect", ref ele.imageAspect)
            .FloatField("Border Radius", ref ele.borderRadius)
            .Vector4Field("Border Widths", ref ele.borderWidths);
            btnStyleDrawer.OnGUI();
        }
 private void ContentGUI()
 {
     this.LabelField("Text")
     .TextArea(ref textElement.text, GUILayout.Height(50))
     .LabelField("Tooltip")
     .TextArea(ref textElement.tooltip, GUILayout.Height(50))
     .ObjectField("Font", ref textElement.font, false)
     .IntField("Font Stize", ref textElement.fontSize)
     .Toggle("Rich Text", ref textElement.richText)
     .Pan(() => {
         textElement.overflow  = (TextClipping)EditorGUILayout.EnumPopup("Over flow", textElement.overflow);
         textElement.alignment = (TextAnchor)EditorGUILayout.EnumPopup("Alignment", textElement.alignment);
         textElement.fontStyle = (FontStyle)EditorGUILayout.EnumPopup("Font Style", textElement.fontStyle);
     });
     textStyleDrawer.OnGUI();
 }
 private void ContentGUI()
 {
     this.ObjectField("Image", ref image.image, false);
     imageStyleDrawer.OnGUI();
 }
 private void ContentGUI()
 {
     this.IntField("Value", ref toolbar.value);
     styleDrawer.OnGUI();
 }