Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSmugleaf authored Sep 24, 2023
1 parent 1f852f3 commit 9cba978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/en/robust-toolbox/user-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ The XAML code is automatically compiled to IL so it can be efficiently construct
```

## UI Controllers
UI controllers are reponsible for creating, updating and removing controls. Entity systems must not do this themselves.
UI controllers are responsible for creating, updating and removing controls. Entity systems must not do this themselves.
Any data that they use must be obtained by binding their methods to system events (see example below) or by calling methods on IoC services, such as IPlayerManager.
To create one, make a new class that inherits `UIController`. This type will then be instantiated automatically as a singleton by the `UserInterfaceManager`.
Widgets are retrieved within UI controllers by calling `UIManager.GetActiveUIWidgetOrNull<T>()`, where T is a widget such as `ActionsBar`.
Expand Down

0 comments on commit 9cba978

Please sign in to comment.