Added rules
This commit is contained in:
parent
b42b1ae39f
commit
0385858d4f
10 changed files with 423 additions and 85 deletions
|
|
@ -3,6 +3,8 @@ extends Control
|
|||
@onready var panel_container = $PanelContainer
|
||||
@onready var margin_container2 = $Pivot/MarginContainer
|
||||
|
||||
@onready var line_edit = $Pivot/MarginContainer/PanelContainer/MarginContainer/VBoxContainer/TabContainer/General/MarginContainer/General/VBoxContainer/LineEdit
|
||||
|
||||
var mat: ShaderMaterial
|
||||
|
||||
func show_panel() -> void:
|
||||
|
|
@ -19,6 +21,8 @@ func show_panel() -> void:
|
|||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
mat = panel_container.material.duplicate()
|
||||
|
||||
line_edit.text = GameSettings.LOBBY_ENDPOINT
|
||||
pass # Replace with function body.
|
||||
|
||||
func tween_blur(val: float) -> void:
|
||||
|
|
@ -39,3 +43,31 @@ func _on_panel_hidden() -> void:
|
|||
|
||||
func _on_cancel_pressed():
|
||||
hide_panel()
|
||||
|
||||
|
||||
func _on_reset_lobby_url_button_pressed():
|
||||
line_edit = GameSettings.DEFAULT_LOBBY_ENDPOINT
|
||||
GameSettings.LOBBY_ENDPOINT = GameSettings.DEFAULT_LOBBY_ENDPOINT
|
||||
|
||||
|
||||
func _on_line_edit_text_changed(new_text):
|
||||
GameSettings.LOBBY_ENDPOINT = new_text
|
||||
|
||||
|
||||
func _on_rich_text_label_meta_clicked(meta):
|
||||
OS.shell_open(str(meta))
|
||||
|
||||
|
||||
func _on_line_edit_toggled(toggled_on):
|
||||
GameSettings.dof_blur_changed.emit(toggled_on)
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_camera_rotation_speed_value_changed(value):
|
||||
GameSettings.camera_rotation_speed = value
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_camera_movement_speed_value_changed(value):
|
||||
GameSettings.camera_movement_speed = value
|
||||
pass # Replace with function body.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue