Universal Layouts are a powerful feature in FancyMenu that allows you to create layouts that can be applied to multiple screens instead of just a single specific screen. This makes them incredibly useful for creating consistent UI elements that appear across your entire game.
Think of Universal Layouts as "global" layouts that can show up everywhere in your game.
Universal Layouts are super helpful when you want to:
When you create a Universal Layout, it gets loaded with every screen in the game by default. This means any elements you add to a Universal Layout (like buttons, images, or text) will appear on all screens.
But don't worry! It is also possible to make the universal layout only load in specific screens! For that, scroll down to the blacklist and whitelist sections.
The blacklist lets you specify screens where you DON'T want your Universal Layout to appear:
title_screen
for the title screen)Now your Universal Layout will show up on all screens EXCEPT the ones you blacklisted.
The whitelist is the opposite - it ONLY shows your Universal Layout on specific screens:
When using a whitelist, your Universal Layout will ONLY show up on the screens you listed.
To add screens to whitelist or blacklist, you need to know their identifiers:
You can paste this identifier into the whitelist or blacklist.
It is not possible to enable customization for all screens at once.
This is by design and prevents people from accidentally bricking their game because they enable customization for a modded screen that isn't supported.
When you have both Universal Layouts and screen-specific layouts, Universal Layouts are loaded FIRST. This means screen-specific layouts can override elements from Universal Layouts.
You can add loading requirements to your Universal Layout so it only loads under certain conditions: