Skip to content

Latest commit

 

History

History
29 lines (28 loc) · 1.04 KB

CreateTemplates.md

File metadata and controls

29 lines (28 loc) · 1.04 KB

Create a template

Templates is a set of elements that will be display to a player. You can create a template by create new .yml file in UI Templates\Templates folder. Here's the example for yml file:

appliedRole:
- Scp173
- ClassD
elements:
- Your element name
- Another element name

This will apply the elements with name "Your element name" and "Another element name" to players with SCP-173 and Class D role. For usable parameters for Template, please check Customizable UI Tag List in release.

Advanced

Template also provides ways to apply an element in certain condition. Here's an example of how to create a template that change based on conditions

appliedRole:
- Spectator
elements:
- RespawnHint
- "REIsRespawning":
  - RespawningTimer
- "!REIsRespawning":
  - RespawnTimer

In this example, "RespawningTimer" will apply only when the condition "REIsRespawning" is true. "RespawnTimer" will apply only when the condition "REIsRespawning" is false. For supported conditions, please check Customizable UI Tag List in release.