[0.17.31][modding, gui] high frames attached to "left" gui partially ignore interaction

Things that has been reported already before.
Post Reply
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

[0.17.31][modding, gui] high frames attached to "left" gui partially ignore interaction

Post by eduran »

Mod gui frames attached to gui.left with height > 650 (approx, might depend on UI scale) are partially ignored by interaction. The lower part of the frame looks as expected, including child elements, but is ignored as far as mouse interaction is concerned. Any clicks will go through to whatever is behind the frame and tooltips of covered entities show up:
bug.jpg
bug.jpg (169.93 KiB) Viewed 773 times
For clarity I made this screenshot with a custom, transparent frame and active debug overlay. On the right you can see the copper ore tooltip. The invisible border coincides with the lower border of the underlying flow (not created by me, it is part of gui.left).

A single line of lua code is enough to reproduce the issue:

Code: Select all

/c game.player.gui.left.add{type="frame"}.style.height = 1000
The original bug report (viewtopic.php?f=214&t=64842&start=120#p423598) has a small video show-casing the problem in a more complex UI.

Edit: The screenshots were taken at a resolution of 1920x1080 at 100% UI scale. The issue is present for other setups, too, but might require a larger frame.


Post Reply

Return to “Duplicates”