Skip to content

Commit

Permalink
Added tooltips to pipeline dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed Nov 6, 2023
1 parent 0ba88c2 commit fe52c14
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ public static void AddPipelineDropdowns(this UnityEditor.Editor editor, VisualEl
var stage = i; // capture for lambda
var row = ux.AddChild(new InspectorUtility.LeftRightRow());
row.Left.Add(new Label(PipelineStageMenu.s_StageData[stage].Name)
{ style = { flexGrow = 1, alignSelf = Align.Center }});
{
tooltip = "Will add a Behaviour to implement this stage in the procedural pipeline",
style = { flexGrow = 1, alignSelf = Align.Center }
});
var warningIcon = row.Left.AddChild(InspectorUtility.MiniHelpIcon("Component is disabled or has a problem"));
warningIcon.SetVisible(false);

Expand Down Expand Up @@ -244,7 +247,8 @@ public static void AddExtensionsDropdown(this UnityEditor.Editor editor, VisualE
{
var row = new InspectorUtility.LabeledRow(
"Add Extension", "Extensions are behaviours that inject themselves into "
+ "the Cinemachine pipeline to alter the camera's behaviour.");
+ "the Cinemachine pipeline to alter the camera's behaviour. "
+ "This dropdown will add the selected extension behaviour.");

var menu = new ContextualMenuManipulator((evt) =>
{
Expand Down

0 comments on commit fe52c14

Please sign in to comment.