Open sosasees opened 9 months ago
@sosasees You can try my Android Plugin System Bar Color Changer, It has the functionality to change system bars color and enable translucent system bars.
Currently you cannot toggle them seperately but you can use DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_EXCLUSIVE_FULLSCREEN)
to toggle immersive mode.
Describe the project you are working on
a game with
Describe the problem or limitation you are having in your project
the first part is done because the system bars are hidden by default. but i can't do the second part because i found no way to toggle system bars in GDScript
Describe the feature / enhancement and how it helps to overcome the problem or limitation
adding GDScript methods to
would make it possible to solve the user story.
making separate methods to
would be even better because then games could also
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
the GDScript methods would be:
OS.set_status_bar_visible( bool value )
OS.set_navigation_bar_visible( bool value )
to improve readability of the system bars, we could also set their background color (but that's out-of-scope for this proposal, and as a workaround we could always place ColorRects behind the system bars):
OS.set_status_bar_color( Color background_color )
OS.set_navigaton_bar_color( Color background_color )
If this enhancement will not be used often, can it be worked around with a few lines of script?
i believe not: i asked 1 time each across 2 Godot forums and no-one could answer (no longer official forum, official forum)
Is there a reason why this should be core and not an add-on in the asset library?
this will benefit all paid games (and many free games) because they all have pre-game menus and a pause menu