Hide player UI for menu simulations

Place to get help with not working mods / modding interface.
half a cat
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

Hide player UI for menu simulations

Post by half a cat »

I saved a game and used it as a menu simulation. The menu simulation shows the quickbar and other player UI, which I don't want. How can I hide the UI?

This post says the solution is to save in editor mode, but I don't know how to do that.
Loewchen
Global Moderator
Global Moderator
Posts: 10750
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Hide player UI for menu simulations

Post by Loewchen »

Did you create the test player?
half a cat
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

Re: Hide player UI for menu simulations

Post by half a cat »

Creating a test player in sim.init using game.simulation.create_test_player{name="test"} doesn't seem to do anything. I couldn't find any examples that use this function, so I may be using it incorrectly.
Natha
Filter Inserter
Filter Inserter
Posts: 312
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Hide player UI for menu simulations

Post by Natha »

I saved the game after hiding the quickbar and everything else: https://lua-api.factorio.com/latest/con ... w_quickbar
half a cat
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

Re: Hide player UI for menu simulations

Post by half a cat »

Natha wrote: Fri May 08, 2026 10:19 pm I saved the game after hiding the quickbar and everything else: https://lua-api.factorio.com/latest/con ... w_quickbar
This part of the API doesn't seem to control GUI elements created by mods. I tried it out in the editor and it could hide almost everything. The Bob's Adjustable Inserters button on the top-left of the screen stays visible.
Post Reply

Return to “Modding help”