Page 1 of 1
Hide player UI for menu simulations
Posted: Fri May 08, 2026 4:00 pm
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.
Re: Hide player UI for menu simulations
Posted: Fri May 08, 2026 4:31 pm
by Loewchen
Did you create the test player?
Re: Hide player UI for menu simulations
Posted: Fri May 08, 2026 6:46 pm
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.
Re: Hide player UI for menu simulations
Posted: Fri May 08, 2026 10:19 pm
by Natha
I saved the game after hiding the quickbar and everything else:
https://lua-api.factorio.com/latest/con ... w_quickbar
Re: Hide player UI for menu simulations
Posted: Sat May 09, 2026 3:08 am
by half a cat
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.
Re: Hide player UI for menu simulations
Posted: Sat May 09, 2026 10:45 am
by Natha
half a cat wrote: Sat May 09, 2026 3:08 amThe Bob's Adjustable Inserters button on the top-left of the screen stays visible.
If you press F4, you can check the debug setting "hide-mod-guis"