Add weather presentation and gameplay UI improvements
This commit is contained in:
parent
db6074ddfa
commit
51fa6535b6
28 changed files with 1067 additions and 61 deletions
|
|
@ -1005,7 +1005,7 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
if not local_control_enabled or not _is_camera_input_enabled():
|
||||
return
|
||||
if event.is_action_pressed("toggle_free_camera"):
|
||||
_set_free_camera_active(not _free_camera_active)
|
||||
toggle_free_camera()
|
||||
get_viewport().set_input_as_handled()
|
||||
return
|
||||
|
||||
|
|
@ -1140,6 +1140,16 @@ func _set_free_camera_active(active: bool) -> void:
|
|||
_camera.current = local_control_enabled
|
||||
|
||||
|
||||
func toggle_free_camera() -> void:
|
||||
if not local_control_enabled:
|
||||
return
|
||||
_set_free_camera_active(not _free_camera_active)
|
||||
|
||||
|
||||
func is_free_camera_active() -> bool:
|
||||
return _free_camera_active
|
||||
|
||||
|
||||
func _update_free_camera_physics() -> void:
|
||||
if _free_camera == null or _free_camera_body == null:
|
||||
_set_free_camera_active(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue