dialogic-godot / dialogic

💬 Create Dialogs, Visual Novels, RPGs, and manage Characters with Godot to create your Game!
https://dialogic.pro
MIT License
3.35k stars 206 forks source link

Allow Array.entry access syntax #2197

Open Jowan-Spooner opened 3 weeks ago

Jowan-Spooner commented 3 weeks ago

Array and Dictionary entries in autoloads or other objects can be accessed like this {Autoload.array["entry"]}.

However the syntax {Autoload.array.entry}, which gdscript users would expect to also work, is not implemented.

This was mainly done, because I wanted to get some sort of access working quickly and my time is limited. Array.entry is harder to differentiate from normal object member access.

If we could implement this, it would be cool.