[0.10.3] Custom GUI limits interaction area
Posted: Wed Jul 23, 2014 11:11 pm
This bug (or not) is kinda annoying and difficult to explain.
Custom GUI limits interaction area where no GUI elements actually present.
No we have something like this:
Blue and red areas are both non-interactable (i.e. player can't build using mouse in this area).
But blue area is expected to be interactable as there are no explicit GUI elements.
Well, actually there is element in blue area, the game.player.gui.left itself, as I understand it was made for simplification, but it still feels weird.
Perhaps there can be made a special flag for the root gui elements, to make them transparent for player interaction.
P.S. it would also be nice to have such flag exported to the API, useful for transparent informational frames.
Custom GUI limits interaction area where no GUI elements actually present.
Code: Select all
-- in console
game.player.gui["left"].direction = 'vertical'
game.player.gui["left"].add{type="frame", caption="1"}
game.player.gui["left"].add{type="frame", caption="1111111111111111111111111111"}
game.player.gui["left"].add{type="frame", caption="1111111111111111111111111111111111111111111111111111111111111111111"}
game.player.gui["left"].add{type="frame", caption="1111111111111111111111111111111111111111111111111111111111111111111111111111111111111"}
game.player.gui["left"].add{type="frame", caption="1111111111111111111111111111111111111111111111111111111111111111111"}
game.player.gui["left"].add{type="frame", caption="1111111111111111111111111111"}
game.player.gui["left"].add{type="frame", caption="1"}
Blue and red areas are both non-interactable (i.e. player can't build using mouse in this area).
But blue area is expected to be interactable as there are no explicit GUI elements.
Well, actually there is element in blue area, the game.player.gui.left itself, as I understand it was made for simplification, but it still feels weird.
Perhaps there can be made a special flag for the root gui elements, to make them transparent for player interaction.
P.S. it would also be nice to have such flag exported to the API, useful for transparent informational frames.