Example #1
0
        protected sealed override void OnGUI(Rect position, GUIContent label)
        {
            position = BeginBlock(metadata, position, GUIContent.none);

            if (showHeader)
            {
                var headerPosition = position;
                headerPosition.x     = 0;
                headerPosition.width = LudiqGUIUtility.currentInspectorWidthWithoutScrollbar;
                OnHeaderGUI(headerPosition);
            }

            var nestPosition = position.VerticalSection(ref y, LudiqGUI.GetEditorHeight(this, nestMetadata, position.width));

            OnNestGUI(nestPosition);

            if (showConfiguration)
            {
                OnConfigurationGUI(position);
            }

            EndBlock(metadata);
        }
Example #2
0
 private float GetSelectionPanelHeight(float width)
 {
     return(LudiqGUI.GetEditorHeight(null, context.selectionMetadata, width));
 }
Example #3
0
 private float GetGraphPanelHeight(float width)
 {
     return(LudiqGUI.GetEditorHeight(null, context.graphMetadata, width));
 }
 protected override float GetInspectorHeight(float width)
 {
     return(LudiqGUI.GetEditorHeight(this, nestMetadata, width));
 }
Example #5
0
 protected virtual float GetNestHeight(float width)
 {
     return(LudiqGUI.GetEditorHeight(this, nestMetadata, width));
 }