fian46 / addons-btree

Visual Behavior Tree
MIT License
115 stars 19 forks source link

custom color for each node #39

Open JustusPan opened 4 years ago

JustusPan commented 4 years ago

Is it possible to assign different color for each node? And provide a preset of colors as shortcut.

fian46 commented 4 years ago

Please elaborate more.

JustusPan commented 4 years ago

usage example. Maybe we can add a shortcut to invoke a color setting panel or put it on the inspector panel when we select a node on BTree editor. And then we can change the background color of each BT node. you can customize each of them or quick select one color from a preset set.(maybe we can reuse the color picker part of godot). I don't know the detail of current implementation. Is it possible to implement similar feature? image image

fian46 commented 4 years ago

it can be done but currently the editor is already full with stuff, adding more panel to change the color is make the usability harder. in my small monitor it can barely fit it all. if you want to change it you can edit the scene in res://addons/btree/Editor/ folder. just change the self_modulate color for each node to someting you like.

davord45 commented 4 years ago

Could you maybe make a set of shortcuts for primary colors,like red,yellow,blue,green,purple,orange,cyan? Just something to keep nodes visually different.

davord45 commented 4 years ago

Or maybe like shortcut for R number set, for G and B.So that you input color values from Godot swatch,does not have to be in the Editor itself