mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Capture mouse
This commit is contained in:
parent
95841b2953
commit
d62538a382
1 changed files with 5 additions and 0 deletions
|
|
@ -323,10 +323,15 @@ public partial class GameManager : Node2D
|
|||
case GameState.Dialogue:
|
||||
case GameState.Inventory:
|
||||
GetTree().SetPause(true);
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
break;
|
||||
case GameState.Playing:
|
||||
case GameState.Controlling:
|
||||
Input.MouseMode = Input.MouseModeEnum.Confined;
|
||||
GetTree().SetPause(false);
|
||||
break;
|
||||
case GameState.Menu:
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
GetTree().SetPause(false);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue