[1.1.4]Gui.relative type filter not working
Posted: Thu Dec 03, 2020 11:06 pm
Using the type filter for gui.relative does not work
To reproduce:
Open an artillery wagon, no button shows up
Using name = "artillery-wagon" or names = {"artillery-wagon"} works.
I also tried it with a two other container types (cargo-wagon, contain), the tyoe filter seems to not work at all
To reproduce:
Code: Select all
/c game.player.gui.relative.add{type = "button", caption="Test", anchor = {gui = defines.relative_gui_type.container_gui, type = "artillery-wagon", position = defines.relative_gui_position.right}}
Using name = "artillery-wagon" or names = {"artillery-wagon"} works.
I also tried it with a two other container types (cargo-wagon, contain), the tyoe filter seems to not work at all