> ## Documentation Index
> Fetch the complete documentation index at: https://ugcore.urging.ch/llms.txt
> Use this file to discover all available pages before exploring further.

# UgLib.Enums

> Every value ug-lib compares or accepts.

<Badge color="purple">Shared</Badge> Runs in your resource.

Pass and compare these values, never the strings. Your editor completes them and flags typos.

| Enum | Values |
| - | - |
| `Position` | `TopLeft`, `Top`, `TopRight`, `CenterLeft`, `Center`, `CenterRight`, `BottomLeft`, `Bottom`, `BottomRight` |
| `NotifyType` | `Info`, `Success`, `Warning`, `Error` |
| `NotifyStyle` | `Toast`, `Compact`, `Banner` |
| `ProgressStyle` | `Bar`, `Circle`, `Ring`, `Minimal` |
| `TextUIStyle` | `Pill`, `Minimal`, `Keybind`, `Card` |
| `FieldType` | `Text`, `Textarea`, `Number`, `Password`, `Select`, `MultiSelect`, `Checkbox`, `Toggle`, `Slider`, `Color`, `Date` |
| `CloseReason` | `Cancelled`, `Timeout`, `Busy`, `Replaced`, `Closed` |
| `Difficulty` | `Easy`, `Medium`, `Hard` |
| `Icon` | `Info`, `Settings`, `User`, `Lock`, `Unlock`, `Trash`, `Star`, `Edit`, `Plus`, `Minus`, `Check`, `Warning`, `Error`, `Question` |
| `Color` | `Primary`, `Success`, `Warning`, `Destructive`, `Muted` |
| `DialogSize` | `Small`, `Medium`, `Large` |
| `UiType` | `Notify`, `TextUI`, `Progress`, `SkillCheck`, `Dialog`, `Context`, `Menu`, `Radial` |
| `CacheKey` | `Ped`, `PlayerId`, `ServerId`, `Coords`, `Heading`, `Vehicle`, `Seat`, `Weapon` |
| `Asset` | `Model`, `AnimDict`, `AnimSet`, `PtfxAsset`, `TextureDict`, `ScaleformMovie` |
| `ZoneShape` | `Sphere`, `Box`, `Poly`, `Point` |
| `KeyMapper` | `Keyboard`, `MouseButton`, `MouseWheel`, `Gamepad` |
| `CurrencyPosition` | `Before`, `After` |
| `DurationStyle` | `Short`, `Clock`, `Long` |
| `ThemeMode` | `Dark`, `Light` |
| `Events.Cache` | `Changed` |
| `Events.Ui` | `Opened`, `Closed` |

## Events

Local events from ug-lib reach every resource on the client. Check `GetInvokingResource()` is `ug-lib` before trusting them.

| Event | Arguments |
| - | - |
| `Events.Cache.Changed` | `(key, value, oldValue)` |
| `Events.Ui.Opened` | `(type, ownerResource)`, when a modal opens |
| `Events.Ui.Closed` | `(type, ownerResource)`, when it closes |

Prefer [`UgLib.Cache.On`](/ug-lib/cache) to the raw cache event.


## Related topics

- [Importing ug-lib](/ug-lib/importing.md)
- [UgLib.Streaming](/ug-lib/streaming.md)
- [UgLib.Clipboard and Ui](/ug-lib/clipboard.md)
- [UgLib.Cache](/ug-lib/cache.md)
- [UgLib.Dialog](/ug-lib/dialog.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.