Page 1 of 1

[2.1.14] CustomInputEvent has `element` but `in_gui` is false when clicking on a flow

Posted: Wed Aug 19, 2026 8:59 am
by Osmo
Reproduction steps:
- Install mod
osmo-test-mod2_2.1.0.zip
(853 Bytes) Downloaded 23 times
- Create debug world
- Run the following commands, in order

Code: Select all

/c flow = game.player.gui.screen.add{type = "flow"}
/c flow.style.width = 200
/c flow.style.height = 200
- Enable GUI style view tool (Ctrl + F6)
- Click on the added flow
- The event data of the custom input event is printed.

Expected result: when element is set, in_gui must also be true.
Actual result: element is set, but in_gui is false.
изображение.png
изображение.png (1.22 MiB) Viewed 249 times

Re: [2.1.14] CustomInputEvent has `element` but `in_gui` is false when clicking on a flow

Posted: Wed Aug 19, 2026 9:28 am
by boskid
Thanks for the report however there are no bugs here. Both values are correct: it correctly shows `element` because that element is under cursor, and it correctly states cursor is not in gui because cursor is over transparent part of the element.

Re: [2.1.14] CustomInputEvent has `element` but `in_gui` is false when clicking on a flow

Posted: Wed Aug 19, 2026 10:20 am
by Osmo
I guess it makes sense since it can be clicked through, just was unexpected. Thanks for the reply.