Page 1 of 1

[0.15.32] LuaControl.opened with defines.gui_type.none

Posted: Sat Aug 05, 2017 7:47 pm
by theRustyKnife
If I try to do something like

Code: Select all

game.player.opened = defines.gui_type.none
the game just spits out an error saying: "Invalid type: 0". According to the docs this should be possible and I see no reason why it shouldn't either.

Cheers TRK

Re: [0.15.32] LuaControl.opened with defines.gui_type.none

Posted: Sun Aug 06, 2017 12:34 am
by Rseding91
Thanks for the report. The current supported way to close the GUi is to set it to "nil". There's no reason "none" can't also work but until that's fixed you can use nil.

Re: [0.15.32] LuaControl.opened with defines.gui_type.none

Posted: Sun Aug 06, 2017 6:15 am
by theRustyKnife
Ok, didn't know that, thanks.