[2.1.14] CustomInputEvent has `element` but `in_gui` is false when clicking on a flow
Posted: Wed Aug 19, 2026 8:59 am
Reproduction steps:
- Install mod - Create debug world
- Run the following commands, in order
- 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.
- Install mod - 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
- 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.