Page 1 of 1

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

Posted: Wed Apr 17, 2019 5:55 pm
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 1156 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.

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

Posted: Tue Apr 23, 2019 10:32 pm
by kovarex
Duplicate: 67799