protected override void OnGuiBeginSafe(BeginGroupAttribute attribute) { ToolboxLayoutHelper.BeginVertical(Style.groupBackgroundStyle); if (attribute.HasLabel) { GUILayout.Label(attribute.Label, EditorStyles.boldLabel); } }
protected override void OnGuiBeginSafe(BeginGroupAttribute attribute) { if (attribute.HasLabel) { using (new GUILayout.VerticalScope(Style.labelBackgroundStyle)) { GUILayout.Label(attribute.Label, Style.labelStyle); } GUILayout.Space(Style.labelOffset); } ToolboxLayoutHelper.BeginVertical(Style.groupBackgroundStyle); }
protected override void OnGuiBeginSafe(BeginGroupAttribute attribute) { if (attribute.HasLabel) { using (new GUILayout.HorizontalScope(Style.labelBackgroundStyle)) { //draw group label for the whole section GUILayout.Label(attribute.Label, Style.labelStyle); } //remove additional space between layouts GUILayout.Space(Style.labelOffset); } ToolboxLayoutHelper.BeginVertical(Style.groupBackgroundStyle); }
protected override void OnGuiBeginSafe(BeginHorizontalGroupAttribute attribute) { var fixedWidth = EditorGUIUtility.currentViewWidth; var fixedHeight = attribute.Height; EditorGUIUtility.labelWidth = fixedWidth * attribute.LabelToWidthRatio; EditorGUIUtility.fieldWidth = fixedWidth * attribute.FieldToWidthRatio; ToolboxLayoutHelper.BeginVertical(Style.groupBackgroundStyle); if (attribute.HasLabel) { GUILayout.Label(attribute.Label, EditorStyles.boldLabel); } HandleScrollView(fixedHeight); ToolboxLayoutHelper.BeginHorizontal(); }