# Sandbox.PauseActionAttribute

A button of your game's own on the pause menu, along its top bar beside Resume - a vote, a
scoreboard, a "back to the lobby". Put it on a static method that takes nothing; pressing the
button calls it.

## Examples

```csharp
public static class MapVote
{
    [PauseAction( "Vote map", Icon = "how_to_vote", DismissOnPress = true )]
    public static void Open() => VoteScreen.Open();
}
```

- Kind: attribute
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`PauseActionAttribute`](/api/Sandbox.PauseActionAttribute/.ctor)

## Properties

- [`DismissOnPress`](/api/Sandbox.PauseActionAttribute/DismissOnPress): Close the pause menu once it's pressed, back to the game - for an action that opens something of the game's own, or only makes sense played.
- [`Icon`](/api/Sandbox.PauseActionAttribute/Icon): A Material icon name to go with it, or null for none.
- [`Order`](/api/Sandbox.PauseActionAttribute/Order): Where it goes among the game's other actions - lower first.
- [`Title`](/api/Sandbox.PauseActionAttribute/Title): What the button says.
- [`Tooltip`](/api/Sandbox.PauseActionAttribute/Tooltip): Shown when the button's hovered, or null for none.
