Two Line Headers in Custom Nodes

FlowCanvas Forums Support Two Line Headers in Custom Nodes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #486
    tracecat
    Participant

    Is there a way to add additional information to a custom node that is not a FlowOutput or FlowInput? I have seen that this kind of information is often included in the node name with ‘[]’ but this can lead unnecessary wide nodes. I tried to fix this by adding a second line in the header with an explicit ‘\n’. However, the node ui does not display this correctly…

    Attachments:
    You must be logged in to view attached files.
    #492
    Gavalakis
    Keymaster

    Hello,

    There are 2 ways to specify the name of the node. The first one like you found out, is to use the [Name] attribute, but if you need the node name to include some extra information, you can override the property “virtual public string name{get;}” and return whatever you want it to show 🙂
    Regarding the UI vs the title number of lines, currently the node graphic is made to show 1 line, but I will take a look to make it more “dynamic”.

    Let me know if you need any further help.
    Thanks

    Join us on Discord: https://discord.gg/97q2Rjh

    #494
    tracecat
    Participant

    Hi Gavalakis and thanks for your reply!

    I know it is more a “nice to have” feature but a dynamic second line will certainly improve the visual appearance of flow charts. Beside that, I want you to know that you really did a good job with this asset. Though it took me a little effort to create some custom nodes and to link it to my existing serialization framework i really like working with it.

    #498
    Gavalakis
    Keymaster

    Thanks! I really appreciate that and I am really glad you like the tool 🙂
    I will take a look a the multi-line UI and see it included in the next version.

    Thanks again 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.