-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual indication of function state #12758
Visual indication of function state #12758
Conversation
@filipeotero - A couple of things:
|
VerticalAlignment="Center" | ||
Fill="{Binding PortValueMarkerColor, UpdateSourceTrigger=PropertyChanged}" | ||
IsHitTestVisible="False" | ||
SnapsToDevicePixels="True" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then maybe update the comment to reflect that, I got confused because it says on the left of the port
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the comment updated here, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment updated. Thanks!
|
@Amoursol @Jingyi-Wen |
Looks great to me! |
Set the colors in xaml file; Minor fixes;
Looks awesome @filipeotero! |
Please Note:
DynamoRevit
repo will need to be cherry-picked into all the DynamoRevit Release branches that Dynamo supports. Contributors will be responsible for cherry-picking their reviewed commits to the other branches after aLGTM
label is added to the PR.Purpose
This PR implements visual improvements at node ports to indicate if a Function Node is in an active/inactive state.
A new rectangle was added in the output port to represent the active/inactive state.
Considering that Function State is represented by the boolean
IsPartiallyApplied
, here are how some states are working in the implementation of this PR.State 1 - Function state but not passing a function (Output port is not connected to another node)
State 2 - Function passing (Output port is connected to another node and passing a function)
State 3 - All input ports are connected, so are not considered at function state anymore (Standard connected input colors)
State 4 - The input ports have default values, so it's not considered at function state (Standard connected input colors)
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@QilongTang @mjkkirschner
FYIs
@jesusalvino @RobertGlobant20