Action Bar (WIP)

Refactor item instance to use DatabaseLink
Labels now pop up when aiming at loot
Yeeted HUD trigger group UI into the abyss
Created rebindable action bar (missing: assigning actions)
Created Consumable Items
Refactored behaviors to work on consumable items
Implemented Velocity Conversion Behavior
This commit is contained in:
Reinier Vens 2021-04-18 05:13:20 +01:00
commit 4489b18452
217 changed files with 5105 additions and 5703 deletions

View file

@ -21,6 +21,7 @@ public class ConsoleView : MonoBehaviour {
private string _inputString = "";
private CursorLockMode _previousCursorLockMode;
private bool _playerInputPreviouslyEnabled;
public string InputString
{
@ -113,17 +114,19 @@ public class ConsoleView : MonoBehaviour {
Visible = visible;
if(visible)
{
_playerInputPreviouslyEnabled = GameManager.Input.Player.enabled;
GameManager.Input.Global.Disable();
GameManager.Input.Player.Disable();
GameManager.DisablePlayerInput();
GameManager.Input.UI.Disable();
_previousCursorLockMode = Cursor.lockState;
Cursor.lockState = CursorLockMode.None;
}
else
{
if(_playerInputPreviouslyEnabled)
GameManager.EnablePlayerInput();
else GameManager.Input.UI.Enable();
GameManager.Input.Global.Enable();
GameManager.Input.Player.Enable();
GameManager.Input.UI.Enable();
Cursor.lockState = _previousCursorLockMode;
}
}