beeglebug / behave-flow

a ui for behave-graph using react-flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow for nodes to be different colours.

bhouston opened this issue · comments

In UE Blueprints nodes with different purposes have different colours. We should likely support the same. I think you can not completely infer the purpose so instead we should just allow for nodes to either assign themselves colors or assign themselves roles which map onto colors.

I added a field to the nodes called "Category" that has the main categories that Unreal engine uses. You can read this from the node specs that can now be exported.

image

no logic yet, but playing around with the nodes having colours and building a palette

Nice! I would totally suggest following the Unreal Engine Blueprints color scheme, it is the most familiar in the industry:

  • Events: Red
  • Logic: Green
  • Constants: Purple
  • Actions: Blue
  • Flow/Time: Grey

Source: https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Nodes/

They also have colors for the socket types (both the socket icon as well as the line that connects them).

  • Flow - White
  • Number - Green.
  • Boolean - Red
  • String - Purple

Source: https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Blueprints/BP_HowTo/ConnectingNodes/

Node colours are now driven from categories, but I'm going to leave this open until socket handles are done

socket handle colors are now working