It is possible to use a Button element as a template for other buttons and even sliders. By doing that, you can apply a specific button/slider design to ALL buttons/sliders in a menu or even the all menus at once when using a universal layout.
A template button is a special kind of custom button in FancyMenu that lets you control how other buttons and sliders look and behave. It's like creating a master design that many other elements will follow.
When you create a template button, you can make many buttons or sliders share the same:
This is super helpful when you want to make your menu look consistent or when you need to update many buttons at once!
Only custom buttons can work as templates. However, these templates can be applied to:
Your button will now be ready to work as a template for other buttons and sliders!
You can choose which types of elements your template will affect:
To set this option:
Important: You can have two templates active at the same time - one for buttons AND one for sliders. This means you can create separate template designs for different element types on the same screen!
You can control exactly which properties your template will share with other elements:
Your template button can be customized just like any other button:
For buttons, you can set custom textures for different states:
For sliders, you can also set:
Template buttons won't appear in the game - They're only visible in the editor, so place them wherever is convenient.
You can have two templates active simultaneously - One template for buttons and one template for sliders can be active at the same time.
Only one template per type is active - If you have multiple button templates, only the top one in your element list will be used for buttons. The same applies to slider templates.
Changes to the template update instantly - When you edit your template, all affected buttons and sliders will update right away.
Use the right sharing mode - Remember that "Buttons" mode won't affect sliders, and "Sliders" mode won't affect buttons.
Apply properties selectively - You don't have to apply all properties. For example, you might want to template just the textures and size but allow elements to keep their original positions.
Textures are always shared when set - Unlike other properties, any custom textures you apply to the template will automatically be shared with matching elements. You don't need to toggle this feature on/off.