This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
global:gamegui [2013/12/09 23:50] Mistermind created |
global:gamegui [2014/10/30 21:50] Justin H. |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Game GUI Options ====== | ====== Game GUI Options ====== | ||
- | Here you can set several in-game GUI options and freely use the information in your own GUI scripts. You can check out the example provided at /Scripts/GUIScript.cs (fully commented) | + | Here you can set several in-game GUI options and freely use the information in your own GUI scripts. You can check out the example provided at '' |
- | {{ :global:global_gamegui.jpg?nolink |}} | + | {{ :global:global_gui.png?nolink |}} |
**In-Game Message Font:** Whenever the game has to announce something (first hit, round 1, combo) it will use this font. | **In-Game Message Font:** Whenever the game has to announce something (first hit, round 1, combo) it will use this font. | ||
Line 12: | Line 12: | ||
**Menu Font (Small):** Font used for menus. | **Menu Font (Small):** Font used for menus. | ||
- | ==== Life and Gauge Bar Options (Player 1/ Player 2) ==== | + | **Round Won Marker:** Image used for round win marker. |
+ | |||
+ | **Gauge/ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | ** Life and Gauge Bar Options (Player 1/ Player 2) ** | ||
**Background Image:** The background image of this bar. | **Background Image:** The background image of this bar. | ||
Line 21: | Line 27: | ||
* The preview does not display changes in the X and Y positions of the background image. | * The preview does not display changes in the X and Y positions of the background image. | ||
* Fill image position is relative to the background image. | * Fill image position is relative to the background image. | ||
- | * Don't worry about setting a different inverted position for player 2. Use the same data. UFE will automatically invert the position. | + | * Don't worry about setting a different inverted position/ |
---- | ---- | ||
- | Code Access: '' | + | Code access: |
+ | |||
+ | '' | ||
+ | |||
+ | Code example: | ||
+ | <code c#> | ||
+ | FontOptions fontOptions = UFE.GetFont(UFE.config.guiOptions.alertFont); | ||
+ | GameObject guiTextGO = (GameObject)Instantiate(fontOptions.fontPrefab, | ||
+ | guiTextGO.guiText.text = "Hello World!"; | ||
+ | </ | ||
---- | ---- | ||
+ | |||
+ | [[global: |