[Klonan] [1.1.59] Relative GUI causes "Create blueprint" button to disappear
Posted: Tue May 31, 2022 4:31 pm
For blueprints that are sufficiently tall, adding a LuaGuiElement anchored to the setup_blueprint GUI causes the green "Create blueprint" button to disappear. Also, the bottom portion of the GUI can be clicked through (you can interact with the taskbar even if the bottom of the setup_blueprint GUI is covering it).
What did I do/What happened?
I started a fresh save in 1.1.59 vanilla and placed the starter mining drill and furnace with 20 tiles of vertical space in between them. I then set up a new blueprint with both entities selected, and everything was normal. I then ran the command and tried making the blueprint again. This time, the bottom portion of the GUI looked like it didn't line up right, and there was no "Create blueprint" button.
What did I expect to happen?
I expected the bottom of the setup_blueprint GUI to behave normally after adding the LuaGuiElement. The anchored element does not affect the height of the overall GUI, so there should not be any issues with the bottom being cut off or buttons disappearing.
What did I do/What happened?
I started a fresh save in 1.1.59 vanilla and placed the starter mining drill and furnace with 20 tiles of vertical space in between them. I then set up a new blueprint with both entities selected, and everything was normal. I then ran the command
Code: Select all
/c game.player.gui.relative.add({type = "button", anchor = {gui = defines.relative_gui_type.blueprint_setup_gui, position = defines.relative_gui_position.right}})
I expected the bottom of the setup_blueprint GUI to behave normally after adding the LuaGuiElement. The anchored element does not affect the height of the overall GUI, so there should not be any issues with the bottom being cut off or buttons disappearing.