Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Added configuration foldout to all service configuration profiles #529

Merged
merged 3 commits into from
Apr 22, 2020

Conversation

StephenHodgson
Copy link
Contributor

@StephenHodgson StephenHodgson commented Apr 19, 2020

XRTK - Mixed Reality Toolkit Change Request

Overview

image

image

@StephenHodgson StephenHodgson added the Enhancement New feature or request label Apr 19, 2020
@StephenHodgson StephenHodgson added the Ready for review PR finished primary development, open for review label Apr 20, 2020
@StephenHodgson StephenHodgson mentioned this pull request Apr 20, 2020
14 tasks
@StephenHodgson StephenHodgson requested a review from FejZa April 21, 2020 18:22
serializedObject.Update();
EditorGUILayout.Space();
configurationList.DoLayoutList();
showConfigurationFoldout = EditorGUILayout.Foldout(showConfigurationFoldout, new GUIContent($"{ServiceConstraint.Name} Configuration Options"), true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be cached as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it? I'm not confident the service constraint is populated in the constructor

serializedObject.Update();
EditorGUILayout.Space();
configurationList.DoLayoutList();
showConfigurationFoldout = EditorGUILayout.Foldout(showConfigurationFoldout, new GUIContent($"{ServiceConstraint.Name} Configuration Options"), true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the "EditorGUILayoutExtensions.FoldoutWithBoldLabel" here? To gradually update all the inspectors to use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do use it in the rolled up branches. It's just that you didn't commit just that change to the development branch. (We could have you pull it out but that's up to you)

@StephenHodgson StephenHodgson merged commit 8cc38e1 into development Apr 22, 2020
@StephenHodgson StephenHodgson deleted the dev/configuration-foldouts branch April 22, 2020 14:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request Ready for review PR finished primary development, open for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants