Page 1 of 1

[1.1.4]Gui.relative type filter not working

Posted: Thu Dec 03, 2020 11:06 pm
by Choumiko
Using the type filter for gui.relative does not work

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}}
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

Re: [1.1.4]Gui.relative type filter not working

Posted: Thu Dec 03, 2020 11:20 pm
by Rseding91
Thanks for the report. It's now fixed for the next release.