Hallonsaft
(Hallonsaft)
February 16, 2024, 12:07pm
1
Hi
I have a inventory widget containing widget slots but I can’t seem to get On Mouse Button Down event to fire in the widget slot. I have checked the visibility settings but no luck.
I can get the On Mouse Button Down event to fire in the inventory widget no problem, but never in the widget slots
What am I doing wrong?
Inventory Widget:
In the Inventory Slot widget:
Everynone
(Everynone)
February 16, 2024, 12:24pm
2
It prints Fail or does not Print at all. You say Never Called - just making sure.
Hallonsaft
(Hallonsaft)
February 16, 2024, 12:26pm
3
Yeah, it never print’s anything, tried putting a breakpoint but nothing happens
Everynone
(Everynone)
February 16, 2024, 12:30pm
4
run the game
start the widget reflector
mouse over misbehaving stuff - the slots
what do you get?
I have checked the visibility settings but no luck.
These:
Should be Not Hit-Testable (Self Only)
or Visible
Slot widget → we will need at least 1 element that is set to Visible
Could you confirm that’s the case?
And the MouseDown should be closer to:
Otherwise it would always Print Fail - but we need to get it to work in the first place, ofc.
Hallonsaft
(Hallonsaft)
February 16, 2024, 12:39pm
5
Not really sure what information i got from the widget reflector
Yes, confirmed they are now all “Not Hit-Testable (Self Only)”
Everynone
(Everynone)
February 16, 2024, 12:44pm
6
Could we see the slot hierarchy and what its root’s is set to in regards of Visiblity?
Hallonsaft
(Hallonsaft)
February 16, 2024, 12:49pm
7
The root is set to visible, i’ve tried all kinds of visibility settings for the different elements
1 Like
Everynone
(Everynone)
February 16, 2024, 12:52pm
8
Just to confirm
Is this the border we’re hitting? Is it called 19 on your end, in its Details panel?
Hallonsaft
(Hallonsaft)
February 16, 2024, 12:56pm
9
I think so, but I have set it to be Not Hit-Testable (Self Only)
Hallonsaft
(Hallonsaft)
February 16, 2024, 1:26pm
10
I just tried creating a new super simple test inventory widget with similar setup and that works fine, I get the On Button down event in the child slot widget with no problem. So I know it works at least.
I think I will just start over and create a new widget
Thanks for the help
1 Like
system
(system)
Closed
March 17, 2024, 1:27pm
11
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.