various fixes
This commit is contained in:
parent
dd95736165
commit
abefcb6b5c
3 changed files with 32 additions and 32 deletions
|
@ -6,6 +6,7 @@ func _ready() -> void:
|
|||
$HBoxContainer/settings/option_aa_msaa.selected = get_viewport().msaa_3d
|
||||
$HBoxContainer/settings/option_aa_ss.selected = get_viewport().screen_space_aa
|
||||
$HBoxContainer/settings/fov_slider.value = Globalvariables.FOV
|
||||
$HBoxContainer/settings/fov_slider/CurrentLabel.text = str(int(Globalvariables.FOV))
|
||||
|
||||
func _on_tab_bar_tab_changed(tab: int) -> void:
|
||||
if (thisTab == tab):
|
||||
|
@ -18,7 +19,7 @@ func updateconfig():
|
|||
|
||||
func _on_fov_slider_value_changed(value: float) -> void:
|
||||
Globalvariables.FOV = value
|
||||
$HBoxContainer/settings/fov_slider/Label3.text = str(int(value))
|
||||
$HBoxContainer/settings/fov_slider/CurrentLabel.text = str(int(value))
|
||||
|
||||
|
||||
func _on_option_aa_ss_item_selected(index: int) -> void:
|
||||
|
|
|
@ -38,6 +38,8 @@ var jump_vel: Vector3 # Jumping velocity
|
|||
|
||||
func _ready() -> void:
|
||||
capture_mouse()
|
||||
if ($Camera.fov != Globalvariables.FOV):
|
||||
$Camera.fov = Globalvariables.FOV
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if (interact):
|
||||
|
@ -63,10 +65,6 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
elif event.is_action_pressed(&"freeroam_debug_menu"):
|
||||
$DebugMenu.visible = !$DebugMenu.visible
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if ($Camera.fov != Globalvariables.FOV):
|
||||
$Camera.fov = Globalvariables.FOV
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if (interact):
|
||||
if Input.is_action_just_pressed(&"freeroam_jump"): jumping = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue