Skip to content

[TextEdit] Draw guidelines under the text and caret. - #108599

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
bruvzg:te_guideline_order
Jul 14, 2025
Merged

Repiteo merged 1 commit into
godotengine:masterfrom
bruvzg:te_guideline_order

Conversation

@bruvzg

@bruvzg bruvzg commented Jul 14, 2025

Copy link
Copy Markdown
Member

Fixes #92238
Fixes #108481

Adds an internal virtual method to draw guidelines in the middle of TextEdit draw instead of using own DRAW.

Before:
Screenshot 2025-07-14 at 10 49 29

After:
Screenshot 2025-07-14 at 10 51 09

@bruvzg bruvzg added this to the 4.5 milestone Jul 14, 2025
@bruvzg
bruvzg requested a review from a team as a code owner July 14, 2025 07:55
@KoBeWi

KoBeWi commented Jul 14, 2025

Copy link
Copy Markdown
Member

Guidelines are something specific to CodeEdit, no? The new method could have more generic name, like _background_draw() or something. But it's internal, so it can always be renamed I suppose.

@bruvzg

bruvzg commented Jul 14, 2025

Copy link
Copy Markdown
Member Author

Guidelines are something specific to CodeEdit, no?

Yes, but I can't think of anything else that cab be drawn between background and text.

like _background_draw() or something.

It's not on the background, so not sure what the beast name would be.

Comment thread scene/gui/code_edit.cpp Outdated
Comment thread scene/gui/text_edit.cpp Outdated
@bruvzg
bruvzg force-pushed the te_guideline_order branch from e7cfe7b to 89d710b Compare July 14, 2025 13:30
@bruvzg
bruvzg force-pushed the te_guideline_order branch from 89d710b to 8624134 Compare July 14, 2025 13:32
@Repiteo
Repiteo merged commit 7498243 into godotengine:master Jul 14, 2025
@Repiteo

Repiteo commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

Thanks!

BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
[TextEdit] Draw guidelines under the text and caret.
wangshucheng pushed a commit to wangshucheng/godot that referenced this pull request Aug 27, 2026
[TextEdit] Draw guidelines under the text and caret.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants