Page 1 of 1

Character Inventory/Logistic/Crafting GUI

Posted: Wed Aug 22, 2018 11:08 pm
by Muppet9010
Am I correct in finding that a mod can not interact directly with the character inventory GUI (shown by pressing press E by default).
I had a look around the GUI elements on the screen for the player and when open it doesn't seem to exist under game.player.gui.center, or top or left. I can see other mod created GUIs here.
I also searched via code looking for usage of the translation keys and couldn't find any in the game's core/base LUA code.

Re: Character Inventory/Logistic/Crafting GUI

Posted: Thu Aug 23, 2018 2:24 am
by eradicator
Muppet9010 wrote:Am I correct in finding that a mod can not interact directly with the character inventory GUI (shown by pressing press E by default).
The API offers no access whatsoever to any of the base game gui elements. You only get LuaPlayer.opened and LuaPlayer.opened_gui_type to tell if and what type of gui is open. But you can not manipulate them. You do get full access to any mod created guis currently.
Muppet9010 wrote:I also searched via code looking for usage of the translation keys and couldn't find any in the game's core/base LUA code.
I have no clue what you did there.

Re: Character Inventory/Logistic/Crafting GUI

Posted: Thu Aug 23, 2018 10:25 am
by Muppet9010
Thank you for confirming