Max Kalentsov
Max Kalentsov

Reputation: 70

How to make overlapping buttons?

Is there a nice way to make two buttons overlap in such a way that when their intersection is cliked, both buttons will be activated at the same time?

Like this

I tried to change mouse_filter parameter, but it didn't gave any result.

Upvotes: 1

Views: 228

Answers (1)

unlut
unlut

Reputation: 3775

You have 2 options as far as I know:

1- Use TouchScreenButton node instead of Button node derived from Control. It allows the functionality you ask for.

2- Setting mouse filter to "pass" allows event to be passed to parent nodes. If your button nodes are siblings of each other it won't have any effect but if one of them is parent of another you can press both of them at the same time.

Upvotes: 1

Related Questions