TeamSyndi / syndibox

SyndiBox - A powerful text engine for dialog-heavy Godot projects
MIT License
91 stars 9 forks source link

[FEATURE] Overhaul entire system to use string drawing instead of labels #41

Open Sudospective opened 3 years ago

Sudospective commented 3 years ago

I'd like to eventually do a complete rework of the internal print function to directly draw strings rather than create labels with one character each. This would greatly reduce overhead and allow for easier customization. This may also fix the currently open issue with positional effects as well as allow the editor view to finally be functional.

I-Have-No-Idea-What-IAmDoing commented 3 years ago

it might be worth using RichTextLabels instead as an alternative to creating our own system though i haven't really done a lot research on it yet

https://docs.godotengine.org/en/stable/tutorials/gui/bbcode_in_richtextlabel.html https://docs.godotengine.org/en/stable/classes/class_charfxtransform.html

Sudospective commented 3 years ago

While that is a nice idea, the point is to comoletely cut out the need for creating any new objects for text creation. Using one RichTextLabel instead of many Labels is good, but using draw_string() or draw_char() would bring the object-to-character count to 0, and that's my real goal here.

I-Have-No-Idea-What-IAmDoing commented 3 years ago

Hey are you working on this?

If not i was thinking of working on this, but i wanted to make sure that i am not redoing any work.

Sudospective commented 3 years ago

I haven't actually started on this, to be honest. I've been wrapped up in other projects since last year (one of them being Project OutFox!) and haven't had time to work on this engine since. If you'd like to do this, that would be tremendously appreciated!

I-Have-No-Idea-What-IAmDoing commented 1 year ago

TextTest 0 labels or nodes just pure draw_char that can be ported to godot 4

I try to open a PR soon, though it is very WIP right now :)

Ps: I found this weird bug that allow for an interesting fall down effect for text which could be useful for some games

Sudospective commented 1 year ago

YOU ARE A LIFESAVER IVE BEEN SWAMPED WITH LIFE FOR THE PAST EON OR SO