Proper swap, generic mouse confinment and win

This commit is contained in:
Rendo 2025-12-12 16:49:20 +05:00
commit 5df5633c27
16 changed files with 136 additions and 96 deletions

View file

@ -14,12 +14,9 @@ func _input(event: InputEvent) -> void:
if event.is_action_pressed("menu_settings"):
visible = not visible
if visible:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
MouseConfiner.borrow()
else:
if Session.session_started_flag:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
else:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
MouseConfiner.stop_borrow()
func _on_gameplay_main_slider_value_changed(value: float) -> void: