You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dictionary app, and I want implement a RichTextEdit extends RichTextLabel, now I was implemented some features.
Describe the problem or limitation you are having in your project
But there was some problem on current RichTextLabel:
I can't draw my flash cursor at correct position because there have not api get a character position, so I neet a get_position_for_character_at(index) api for that
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Implement get_position_for_character_at(index) api.
OR: Implement a RichTextEdit by core, I realy wish it.
I often use GODOT for GUI-application, I realy need a RichTextEdit
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
/
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, I can't!
Is there a reason why this should be core and not an add-on in the asset library?
This can be achieved using get_character_line(int character) and get_line_offset(int line). Though you may need to know more about your specific font to get the horizontal offset.
Related to #5513.
Describe the project you are working on
A dictionary app, and I want implement a RichTextEdit extends RichTextLabel, now I was implemented some features.
Describe the problem or limitation you are having in your project
But there was some problem on current RichTextLabel:
I can't draw my flash cursor at correct position because there have not api get a character position, so I neet a
get_position_for_character_at(index)
api for thatDescribe the feature / enhancement and how it helps to overcome the problem or limitation
Implement
get_position_for_character_at(index)
api.OR: Implement a
RichTextEdit
by core, I realy wish it.I often use GODOT for GUI-application, I realy need a
RichTextEdit
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
/
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, I can't!
Is there a reason why this should be core and not an add-on in the asset library?
/
My project:
RichTextEditTest.zip
The text was updated successfully, but these errors were encountered: