Skip to content

Ability to separately enable/disable layouts/customizations for screens when in menu / in world #1483

Description

@TheIceCreamBear

Describe your idea
A mod pack I recently downloaded to try out with friends that uses this mod to customize the main menu and to put audio on the main menu and subsequent related screens. I was noticing some inconsistencies with when the audio played from what I expected, and eventually, after trying to reproduce my self from a blank slate, boiled my findings to the following:

  • Usage of a universal layout to play an audio clip
  • Misconfigured mod pack settings for when screen customization is enabled (eg yes on all settings, no on multiplayer and some other related screens)
    • This is personal opinion and related to the mod, so not fully relevant here
  • No way to toggle enabling of screen customization when not in a world vs when in a world.

The latter point was the biggest issue for me, given that the pack had screen customization on for options_screen and a lot of its children screens. This would cause the universal layout to be enabled, allowing the audio to play on these screens. However, this led to the annoying side effects where the menu music would play anytime you hit escape to "pause" the game.

I looked though the available options to see if there was a way to turn off the customization or layout when a world was loaded, but I couldnt find one. Adding something like that would be quite helpful for mod users / pack makers.

An alternative route that could help this problem would be to add a setting to ui elements that lets them get loaded on a given screen and stay loaded until there is a change in world state. Basically, on title screen load, create audio element A, which does not get deleted until the game is closed or a world is created / joined.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions