Skip to content

Better control for events like "click" when multiple layers of UI are on top of each other #137

Open
@scratch85

Description

@scratch85

For e.g. with StackedLayout or GridLayout it is possible that different clickable (or other events like hover) elements are overlapping or are in front of each other. It would be awesome if the triggered wvents would be aware of the fact that e.g. a click happened which initiated also another action.

This would give the possibility to control which event actually gets fired, rather simply firing everything.

My case especially is:
I am using StackedLayout:

  1. "game" is in the background and uses the complete window/screen (it shows a tilemap that has lots of clickable tiles & objects)
  2. "user interface" is laying on top of it and is always visible
    How can I prevent a click on a button of the "user interface" to trigger a click in the "game" which is underneath? For sure any click that does not hit a widget in the "user interface" should be handled as usual by the "game" instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions