Elektrine lite

← Feed

@tracefree@mastodon.gamedev.place

Post #2895240

2026-05-11 12:33 UTC

@memoriesin8bit@mastodon.gamedev.place You could use RichTextLabel to put images inline inside the text with [img] tags (never used it so idk if that gives you enough control over the image sizing etc) https://docs.godotengine.org/en/4.4/tutorials/ui/bbcode_in_richtextlabel.html

Replies (3)

  • @tracefree@mastodon.gamedev.place @memoriesin8bit@mastodon.gamedev.place Yeah, you can give them a size, and you can use any texture resource, even scripted one, not just images.

    Open ##2895241

  • @tracefree@mastodon.gamedev.place okay but what if I wanna show in between is a text on top of a custom stylebox? does that work, too?

    Open ##2895242

  • @alextecplayz@techhub.social 2026-05-11 12:39

    @tracefree@mastodon.gamedev.place @memoriesin8bit@mastodon.gamedev.place and in Godot 4.7 they added the feature to specify height and width with the em suffix in RichTextLabels for the [img] tag: https://github.com/godotengine/godot/pull/112617 I suppose a similar system could be backported or re-created in GDScript for older versions.

    Open ##2895256