Session quitting
This commit is contained in:
parent
2705959bfd
commit
4dce5bd4ca
7 changed files with 48 additions and 2 deletions
|
|
@ -2,6 +2,11 @@ extends Control
|
|||
|
||||
var cached_mouse_state: Input.MouseMode
|
||||
|
||||
func _ready() -> void:
|
||||
hide()
|
||||
Session.session_started.connect(%LeaveButton.show)
|
||||
Session.session_ended.connect(%LeaveButton.hide)
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("menu_settings"):
|
||||
visible = not visible
|
||||
|
|
@ -25,3 +30,7 @@ func _on_sensitivity_slider_value_changed(value: float) -> void:
|
|||
func _on_sensitivity_box_value_changed(value: float) -> void:
|
||||
$VBoxContainer/Sensitivity/HSlider.set_value_no_signal(value)
|
||||
ClientSettings.SENSITIVITY = value
|
||||
|
||||
|
||||
func _on_leave_button_pressed() -> void:
|
||||
Session.quit_session()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue