This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
global:gui [2016/09/28 04:58] Mistermind [Screens] |
global:gui [2024/12/04 05:00] (current) Mistermind [In-Game Annoucements] |
||
---|---|---|---|
Line 2: | Line 2: | ||
Here you can set several in-game GUI options and freely use the information in your own GUI scripts. | Here you can set several in-game GUI options and freely use the information in your own GUI scripts. | ||
- | It's recommended that you go through [[https:// | + | It's recommended that you go through [[https:// |
Line 29: | Line 29: | ||
**Use Canvas Scaler:** Use the dynamic canvas scaler system (recommended). | **Use Canvas Scaler:** Use the dynamic canvas scaler system (recommended). | ||
- | * Scale Mode: How the Canvas will scale your UI. For more detailed information on Canvas Scale modes, see the [[http:// | + | |
- | * __Constant | + | * **Constant |
- | * Reference Pixels Per Unit: How many pixels of the sprite covers a unit in UI (if sprite' | + | |
- | * Scale Factor: Scale UI elements by this factor. | + | |
- | * __Scale | + | * **Scale |
- | * Reference Pixels Per Unit: How many pixels of the sprite covers a unit in UI (if sprite' | + | |
- | * Screen Match Mode: How to scale the canvas if aspect ratio doesn' | + | |
- | * Match Width or Height: Scale the canvas using as reference the width, height, or somewhere in between. | + | |
- | * Resolution: Reference resolution the UI is designed for. If target resolution is higher, Canvas will scale up; if lower it will scale down. | + | |
- | * __Constant | + | * **Constant |
- | * Reference Pixels Per Unit: How many pixels of the sprite covers a unit in UI (if sprite' | + | |
- | * Physical Unit: Specify position and sizes in either Centimetres/ | + | |
- | * Fallback Screen DPI: Assume this DPI is DPI unknown. | + | |
- | * Default Sprite DPI: DPI setting for sprite with Pixels Per Unit setting that matches Reference Pixels Per Unit. | + | |
- | * Update Canvas Preview: If you made any alteration to the variables above with one of the screens opened, click here to update the preview. | + | |
---- | ---- | ||
- | ===== Screens ===== | + | ===== Preset |
- | Click '' | + | Select one of the screens and click '' |
+ | |||
+ | For more on UI check out our [[https:// | ||
To create your own UI screens we recommend you first duplicate one of the defaults and edit as you see fit (including the UI script). All UI scripts are open source on all versions of UFE, and are commented to help understand the functions. | To create your own UI screens we recommend you first duplicate one of the defaults and edit as you see fit (including the UI script). All UI scripts are open source on all versions of UFE, and are commented to help understand the functions. | ||
Line 86: | Line 88: | ||
* Connection Lost: (ConnectionLostScreen) | * Connection Lost: (ConnectionLostScreen) | ||
+ | |||
+ | ---- | ||
+ | ===== Custom Interfaces ===== | ||
+ | Add your own screen (UFEScreen) to the game. Accessible by code using '' | ||
+ | |||
+ | |||
+ | ---- | ||
+ | ===== In-Game Announcements ===== | ||
+ | |||
+ | New location for [[global: | ||
Line 98: | Line 110: | ||
---- | ---- | ||
===== Video Tutorial ===== | ===== Video Tutorial ===== | ||
- | {{youtube> | + | {{youtube> |
+ | {{youtube> | ||
---- | ---- |