diff --git a/MANUAL.md b/MANUAL.md index eeca69c..30644ad 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -35,6 +35,7 @@ Uranium Template originally formed during the creation of a currently unreleased - [`uranium.init()`](#uraniuminit) - [`uranium.ready()`](#uraniumready) - [`uranium.exit()`](#uraniumexit) + - [`uranium.focus(hasFocus: boolean)`](#uraniumfocushasfocus-boolean) - [Custom callbacks](#custom-callbacks) - [Requiring files](#requiring-files) - [Standard library](#standard-library) @@ -337,6 +338,9 @@ Fired on the first tick. A later version of `init()` where more things should be #### `uranium.exit()` _Should_ call when the player exits the file. **Not properly tested yet.** +#### `uranium.focus(hasFocus: boolean)` +Called whenever the window loses/gains focus. You can use this to reduce render quality on alt-tab. + ### Custom callbacks Custom callbacks require no extra setup. Define your callback like usual: diff --git a/template b/template index f528fa5..0763d75 160000 --- a/template +++ b/template @@ -1 +1 @@ -Subproject commit f528fa55f6fa9bd2ba47e233a3f6814c68214c7c +Subproject commit 0763d750ff574e0df75943b036b357428dd9158c