Hide UIs

by O5MO

Allows selectively hiding and showing various GUI elements via convenient buttons.

Utilities
19 hours ago
2.0 - 2.1
235

i [Implemented] Respond to games controller UI

10 days ago

You may want to hide your mod's GUI elements when the player is using a games controller (also called a gamepad).

You can detect this using LuaPlayer::input_method (player.input_method == defines.input_method.game_controller) and the on_player_input_method_changed event.

10 days ago

Thanks for the suggestion, i thought people wouldn't even use the mod with a controller, but it can be useful in multiplayer.
I suppose only the arrow buttons should be hidden, with the menu in top right remaining?

10 days ago

Yes, I believe the Research info pane remains in the same place, and you could have a custom-input for the top-right button if you don't already.

10 days ago

Updated the mod.
A custom input for that menu isn't needed as every toggle in there has a custom input of its own.
Maybe i can hide more stuff in that menu, as they seem to be hidden when playing with a controller anyway, but i don't have a controller to test it definitively.

New response