pruttned / owl-bt

owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.
174 stars 28 forks source link

Add human-readable node type to node #23

Closed rubenwardy closed 3 years ago

rubenwardy commented 4 years ago

Consider allowing node types to specify a human readable name which can be different to the actual name, and used in place of the programmatic name when rendering. This will aid in translations.

{
    "name": "MyNode",
    "label": "A {{ Arg }} node"
}
pruttned commented 3 years ago

This is already possible with description. See readme: https://github.com/pruttned/owl-bt/blob/master/readme.md#node

description - node description. It may contain placeholders for properties {{PropertyName}}

e.g.

"description": "Set alert level to \"{{Level}}\"",

is rendered like this: image