-
Notifications
You must be signed in to change notification settings - Fork 24
Player.GUI
##Player - GUI Setup
This process is quite lengthy but when complete should have the following:
- Main Menu
- Save/Loading
- Input Editer
- Death Screen
- Inventory Menu
- Health Bar
- Incontestables Screen
GUI Button Layout Selection:
GUI Resolution and Quality Options:
GUI Mouse Options & Load Game:
###Table of Contents
- Open the Prefabs > Core folder
- Make a prefabs/assets folder in your Unity project
- Add the GUI.prefab file to that folder
- Drop that prefab into your scene
If done correctly you should have a prefab with a bunch of broken links but its hierarchy setup like the following:
Important notes about this object:
Tag:GUIParent
Layer:UI
It uses the following scripts. Click the links for more information about each of them or look in the Script Docs:
Tag: UIHealthbar
Layer: UI
Healthbar Hierarchy:
The only script is used by GUI > Healthbar > Mask > RedBar
Tag: UIInventory
Layer: UI
Hierarchy Setup:
The GUI > Inventory > Box gameobject is simply where I design my UI box. This can be completely removed if you like and isn't required for anything.
However, the "icons" and "text" gameobjects must be setup like this exactly! The "icons" and "text" gameobject are just holders. "icon1" - "icon5" all just have the UIImage component on them. "text1" - "text5" have a UIText and "InventoryText" Script on them. The inventory text's "Button To Show" should be set to the text number. So "text1" should have "Button To Show" set to "Inventory Slot 1" and 2 set to "Inventory Slot 2" etc.
Read more about the script here:
This gameobject only needs to have a blank UIText Component attached to it. This object should be enabled.
This gameobject needs to have a blank UIText Component attached to it and the "SyncObjectivesList" script. This object should be enabled.
Read about the "SyncObjectivesList" Script here:
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager