Skip to content

Overlaping widgets #980

Closed
Closed
@AlphaSteam

Description

@AlphaSteam

Hello,

I'm using egui for a game engine project for card roguelikes and I wanted to use egui for the cards as ui elements.
The problem is that no matter what I do, I can't put text inside an image. As I read on another issue, widgets are expected not to overlap inside a window.

Could it be possible to allow widgets to overlap each other if explicitly told to do so?
This could help do composed widgets like you do on HTML.

I've tried using Areas, Windows, and Layouts. I tried putting the widget with put and using rects. I tried changing the order of the Widgets.

I also tried creating two areas at the same place, but they don't move at the same time. Perhaps there's a way to link two areas so they move at the same time, but I couldn't figure it out.

card
I would like to put the text above and below, in front of the card.

If this is already possible, any help to achieve it will be appreciated.

Thanks for everyone's work on this project, it's an awesome library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designSome architectual design work neededfeatureNew feature or requestrerunDesired for Rerun.io

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions