fix barista model material import settings, uncapture mouse on escape

This commit is contained in:
2025-08-13 15:04:45 -04:00
parent ab72548577
commit 059d2f4ea1
9 changed files with 54 additions and 8 deletions

View File

@@ -44,7 +44,10 @@ func _physics_process(delta):
velocity.y -= gravity * delta
if Input.is_action_just_pressed("ui_cancel"):
get_tree().quit()
if Input.mouse_mode == Input.MOUSE_MODE_CAPTURED:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
else:
get_tree().quit()
if !locked:
if Input.is_action_just_pressed("crouch"):
@@ -75,7 +78,10 @@ func _physics_process(delta):
handle_aim()
aiming = true
elif Input.is_action_just_pressed("use"):
handle_use()
if Input.mouse_mode == Input.MOUSE_MODE_VISIBLE:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
else:
handle_use()
if Input.is_action_just_pressed("use_alt"):
handle_use_alt()