# 🎰 GUI Animation Files ⭐

> **Info:**
Folder: **plugins/PhoenixCrates/animations**. Premium only.

## Animations Folder

The animations folder of Phoenix Crates holds the layout, timing and sounds of the GUI animations. It is created the first time the plugin starts.

* The CSGO animation - csgo.yml
* The Colored CSGO animation - colored-csgo.yml
* The Spotlight animation - spotlight.yml
* The Rainbow animation - rainbow.yml
* The Flip Cards animation - flip.yml
* The Blackout animation - blackout.yml
* The Snake animation - snake.yml
* The Ring Carousel animation - ring-carousel.yml

Out of the box, every value matches the animation as it has always played, so nothing changes until you edit a file. Run /crates reload after an edit.

The title, filler item, marker items and chance lore of an animation stay per crate and are changed in the [In-Game Editor](../main-features/animations/opening-animations/post-open-animations.md#csgo-gui). The files only decide where things are, how long the spin takes and what it sounds like.

## CSGO Settings

```yaml
type: CSGO_GUI
name: CSGO (GUI)
description: Horizontal scrolling roulette
icon: CHEST
rows: 3
slots:
  track: [10, 11, 12, 13, 14, 15, 16]
  winning: 13
  markers: [4, 22]
timing:
  spin-steps: 79
  slow-down-steps:
    min: 2
    max: 5
  result-hold-ticks: 50
sounds:
  start:
    - BLOCK_NOTE_BLOCK_HAT;0.3;1.6
  tick:
    - UI_BUTTON_CLICK;0.12;1.1
  win:
    - BLOCK_NOTE_BLOCK_HARP;0.36;1.76
    - BLOCK_NOTE_BLOCK_HARP;0.36;2.0
    - ENTITY_PLAYER_LEVELUP;0.45;1.6
```

* rows - The number of rows of the menu, from 1 to 6.
* slots.track - The slots the rewards move through, in the order they move. Rewards enter at the last slot and leave at the first one. The track does not have to be a straight line.
* slots.winning - The track slot the winning reward stops on. If it is not on the track, the middle of the track is used.
* slots.markers - The slots that show the marker items pointing at the winning slot.
* timing.spin-steps - How many times the rewards move before stopping. A higher number makes the spin longer.
* timing.slow-down-steps - The last steps before the stop play slowly. A random number between min and max is picked every opening.
* timing.result-hold-ticks - How long the result stays on screen before the menu closes, in ticks (20 ticks = 1 second).
* sounds - The sounds played when the spin starts, on every step, and when it stops. Each sound is written as SOUND;volume;pitch. Leave a list empty (\[]) to play no sound.

Slots outside the menu, and duplicates, are skipped with a warning in the console.

## Other Animations

Every file starts with the same type, name, description, icon and rows as CSGO, and every animation has sounds.start, sounds.win and timing.result-hold-ticks. The rest differs per animation.

colored-csgo.yml has the same settings as CSGO.

| File | Setting | What it does |
|---|---|---|
| spotlight.yml | slots.rewards | The reward slots, one per lane, in the order the beam sweeps them. The beam lights the whole column of a lane. |
| | slots.winning | The lanes the beam can stop on. |
| | timing.laps | How many full sweeps the beam makes before stopping. |
| | timing.slow-down-steps | The number of slow steps before the stop, picked at random between min and max. |
| | sounds.scan, sounds.scan-pitch-rise | The sound of each beam step, and how much its pitch rises by the end of the spin. |
| rainbow.yml | slots.winning | The slot the reward is revealed in. |
| | slots.lock-order | The slots that lock in, in order. |
| | slots.lock-group-size | How many slots of the order lock together. |
| | timing.chaos-ticks, timing.lock-interval-ticks, timing.slow-down-ticks | How long the colours spin before the first lock, the time between locks, and how long the final slow-down takes. |
| | sounds.tick, sounds.lock, sounds.slow-down | The spin sound, then a sound for each lock and each slow-down step. |
| flip.yml | slots.cards | The card slots. |
| | slots.winning | The cards the reward can end up on. |
| | timing.slow-down-ticks | The wait after each of the last cards vanishes, in order. Earlier cards vanish every tick. |
| | sounds.reveal, sounds.vanish, sounds.final-vanish | The sound of a card turning, of a card vanishing, and a sound for each of the last cards vanishing. |
| blackout.yml | slots.winning | The slot the reward is revealed in. |
| | slots.rings | The groups of slots that lock together, outside in. Each group is written as "0, 8, 18, 26". |
| | timing.chaos-ticks, timing.ring-interval-ticks, timing.slow-down-ticks | How long the slots flash before the first group locks, the time between groups, and how long the final slow-down takes. |
| | sounds.ring, sounds.ring-pitch-step, sounds.slow-down, sounds.slow-down-pitch-step | The sound of each group locking and of each slow-down step, and how much higher each next one plays. |
| snake.yml | slots.path-1, slots.path-2 | The slots each snake moves through, in order, until both meet at the winning slot. |
| | timing.ticks-per-step, timing.pause-ticks | How fast the snakes move, and the pause after they meet. |
| | sounds.step, sounds.meet | A sound for each step, and the sound when the snakes meet. |
| ring-carousel.yml | slots.ring | The slots of the ring, in the order rewards move. |
| | slots.winning | The ring slots the reward can stop on. |
| | slots.marker-path, slots.corners, slots.interior | The slots of the outer marker that runs around the ring, the corner glass and the inner glass. |
| | timing.spin-steps, timing.slow-down-steps | The same as CSGO. |

In the lists for a sound played once per lock, step or card, the first entry plays the first time, the second entry the second time, and the last entry repeats after that. Write several sounds in one entry with commas to play them together.

## Creating Your Own Animation

Copy one of the files to a new file in the same folder, for example csgo.yml to vertical.yml, keep its type and change the slots. After /crates reload, it appears as a new opening animation named after the file (VERTICAL) that you can pick for any crate, with the name, description and icon from the file.

A vertical roulette in a 5-row menu:

```yaml
type: CSGO_GUI
name: Vertical Roulette
description: Rewards fall down the middle column
icon: HOPPER
rows: 5
slots:
  track: [4, 13, 22, 31, 40]
  winning: 22
  markers: [21, 23]
```

> **Info:**
The file name cannot match an animation that already exists, such as ROULETTE. Such a file is skipped with a warning in the console.

Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/gui-animation-files