Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertical alignment tags to RichTextLabel #4458

Open
Tracked by #39144
nonunknown opened this issue Apr 28, 2022 · 0 comments
Open
Tracked by #39144

Add vertical alignment tags to RichTextLabel #4458

nonunknown opened this issue Apr 28, 2022 · 0 comments

Comments

@nonunknown
Copy link

nonunknown commented Apr 28, 2022

Describe the project you are working on

A Multiplayer game.

Describe the problem or limitation you are having in your project

BBCode currently has the center tag but it only align the text in horizontal.

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

The solution would be making 2 new tags:

[center]text[/center] -> will align the text in the RichTextLabel Horizontally and Vertically
[hcenter]text[/hcenter] -> will align the text in the RichTextLabel Horizontally only
[vcenter]text[/vcenter] -> will align the text in the RichTextLabel Vertically only

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

HCENTER TAG
image

VCENTER TAG
image

CENTER TAG
image

If this enhancement will not be used often, can it be worked around with a few lines of script?

as far as I know this cant be made via gdscript

Is there a reason why this should be core and not an add-on in the asset library?

basic functionality

@Calinou Calinou changed the title Add to BBCode [HCenter, VCenter] Add vertical alignment tags to RichTextLabel Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants