AnidemDex / Godot-DialogPlugin

🗨️ A Dialog Node for Godot Engine
MIT License
213 stars 11 forks source link

Add compatibility with Node2D types #87

Open AnidemDex opened 2 years ago

AnidemDex commented 2 years ago

Describe the project you are working on

Textalog

Describe the feature / enhancement and how it helps to overcome the problem or limitation

There's no compatibility with Control nodes and Node2D because Control doesn't know what a Transform is and Node2D doesn't know what a Rect is, but, what if portrait manager can hold a reference for an arbitrary Node2D nodes in scenes and the portrait manager uses those to generate Sprite/AnimatedSprite.

With this in mind, Character event can have a "reference position" property, wich points to a node (Control or Node2D type) wich uses as reference to generate the portrait node (and the portrait node can be a Control or a Node2D type)

Adittional information

No response