mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-29 22:11:16 +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.Dialogue:
|
||||||
case GameState.Inventory:
|
case GameState.Inventory:
|
||||||
GetTree().SetPause(true);
|
GetTree().SetPause(true);
|
||||||
|
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||||
break;
|
break;
|
||||||
case GameState.Playing:
|
case GameState.Playing:
|
||||||
case GameState.Controlling:
|
case GameState.Controlling:
|
||||||
|
Input.MouseMode = Input.MouseModeEnum.Confined;
|
||||||
|
GetTree().SetPause(false);
|
||||||
|
break;
|
||||||
case GameState.Menu:
|
case GameState.Menu:
|
||||||
|
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||||
GetTree().SetPause(false);
|
GetTree().SetPause(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue