r/godot • u/Voylinslife Godot Senior • May 02 '22
Discussion I created my first pull request for the engine, print_rich() for printing messages in color (BBCode)
378
Upvotes
r/godot • u/Voylinslife Godot Senior • May 02 '22
89
u/Voylinslife Godot Senior May 02 '22 edited May 02 '22
This took me 3 days with a lot of headaches and a lot of figuring out how the code of the engine actually works. I have contributed to the Godot demo projects, but this is my first time to the actual engine. At this moment it is not improved yet (I guess some things may need a little tweaking).
But I just wanted to share this as I am so proud of myself that I was able to accomplish this. This is a a feature I've been wanting for some time now, and the fact that my c++ programming skills are finally becoming enough that I can program things like this made me very happy. ^^
But also kind of wondering how many people would find this helpful to be implemented into the engine.
Edit:
Link to the pull request: https://github.com/godotengine/godot/pull/60675
18
u/TabiJapan May 02 '22
thanks for making hope it will be added
7
u/Voylinslife Godot Senior May 02 '22
All checks are running now, I have been improving this feature since this morning and fixing all the workflow bugs as well. Been a busy day but I hope it will finally go well :D
Edit: in total I compiled the engine 86 times since I started doing this. I don't want to pass 100 ^^"
10
u/EkoeJean Godot Junior May 02 '22
Thank all people who take their time and endure headaches to give some of their genius on open source projects.
4
u/Dizzy_Caterpillar777 May 02 '22
Nice! May I suggest writing some more documentation? Currently the RichTextLabel supports bbcode and its documentation contains a list of supported commands (https://docs.godotengine.org/en/stable/tutorials/ui/bbcode_in_richtextlabel.html?highlight=bbcode#reference). This new
print_rich()function supports a slightly different set of bbcode, so it would be nice to have a similar documentation about the supported commands and colors.1
u/[deleted] May 02 '22
This is such a neat idea! Thank you for sharing!
1
u/fractalCha0s May 02 '22
Amazing work! Now I won't have to copy paste output to and editor and search for what I'm looking for.
1
u/Auralinkk May 02 '22
I never thought about this, but now it is here I must find a way to use it. Way to go, mate!
1
u/osdd_alt_123 May 03 '22
Very nice, we're so very proud of you. Keep it up, dearie! 🥰🤗😊😁👍🎉🎈