Character Inventory/Logistic/Crafting GUI

Place to get help with not working mods / modding interface.
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 285
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Character Inventory/Logistic/Crafting GUI

Post 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.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Character Inventory/Logistic/Crafting GUI

Post 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.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 285
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Re: Character Inventory/Logistic/Crafting GUI

Post by Muppet9010 »

Thank you for confirming
Post Reply

Return to “Modding help”