Page 1 of 1

Is there a way to hide some of the side panel buttons?

Posted: Thu May 02, 2024 5:06 am
by Doctor_Willis
I'd like to hide most of the buttons in the side panel, only showing the Research button and the Tips and tricks button, like this:
Side panel.png
Side panel.png (3.89 KiB) Viewed 780 times

Or maybe even with some text next to the icon, like this:
Side panel with words.png
Side panel with words.png (5.3 KiB) Viewed 780 times

Is this something I can do with some code? Or would I have to develop a new GUI?
And related to this, can I disable the hotkeys that open some of these? (B, P, and O)

Re: Is there a way to hide some of the side panel buttons?

Posted: Thu May 02, 2024 9:44 am
by Bilka
You can hide the entire bar with player.game_view_settings.show_side_menu = false, but you can't control individual buttons. Note also that when using a controller, the buttons are accessible via the quick panel.

You cannot disable the hotkeys. What you can do is use the permissions system to disallow opening the guis. The permission system is accessible for mods via player.permission_group -> LuaPermissionGroup.