summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-10-04 12:15:33 +0200
committertpart <tpart120@proton.me>2024-10-04 12:15:33 +0200
commit25976e888def15d3ae63635385372f9c8313e0b9 (patch)
tree7b964f7c6eea1f2607889e1ca056d84fdec52ce0
parent966cbc43171b0f32b4a06c07d029fd6298563688 (diff)
downloadhurrycurry-25976e888def15d3ae63635385372f9c8313e0b9.tar
hurrycurry-25976e888def15d3ae63635385372f9c8313e0b9.tar.bz2
hurrycurry-25976e888def15d3ae63635385372f9c8313e0b9.tar.zst
Enable msaa for setup menu (Fixes #154)
-rw-r--r--client/menu/setup.gd6
-rw-r--r--client/project.godot1
2 files changed, 6 insertions, 1 deletions
diff --git a/client/menu/setup.gd b/client/menu/setup.gd
index f7fd15c5..21fbc526 100644
--- a/client/menu/setup.gd
+++ b/client/menu/setup.gd
@@ -42,6 +42,10 @@ func _ready():
spacer.size_flags_vertical = Control.SIZE_EXPAND
spacer.custom_minimum_size.x = 50
select_uniform.add_child(spacer)
+
+ # Enable msaa 2D for this scene
+ Global.get_viewport().msaa_2d = Viewport.MSAA_4X
+
super()
func _character_selected(idx: int):
@@ -85,4 +89,6 @@ func _on_sign_pressed():
Global.set_setting("gameplay.setup_completed", true)
Global.save_settings()
+ Global.get_viewport().msaa_2d = Viewport.MSAA_DISABLED
+
replace_menu("res://menu/main.tscn")
diff --git a/client/project.godot b/client/project.godot
index 8f0216ca..2efec7e6 100644
--- a/client/project.godot
+++ b/client/project.godot
@@ -211,5 +211,4 @@ locale/translations=PackedStringArray("res://po/it.po", "res://po/ar.po", "res:/
renderer/rendering_method.mobile="gl_compatibility"
textures/vram_compression/import_etc2_astc=true
environment/defaults/default_clear_color=Color(0, 0, 0, 1)
-anti_aliasing/quality/msaa_2d=1
anti_aliasing/quality/msaa_3d=1