[0.17.31][modding, gui] high frames attached to "left" gui partially ignore interaction
Posted: Wed Apr 17, 2019 5:55 pm
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:
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:
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.
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
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.