imported main menu scene addon

This commit is contained in:
djaidjai committed 2026-05-10 15:48:56 +02:00
1 parent 86d9f75161
commit 71c2850a34
458 files changed
+14881

No files matched your search

@@ -0,0 +1,12 @@
extends SubViewport
## Script to apply the anti-aliasing setting from [PlayerConfig] to a [SubViewport].
## The name of the anti-aliasing variable in the [ConfigFile].
@export var anti_aliasing_key : StringName = "Anti-aliasing"
## The name of the section of the anti-aliasing variable in the [ConfigFile].
@export var video_section : StringName = AppSettings.VIDEO_SECTION
func _ready() -> void:
var anti_aliasing : int = PlayerConfig.get_config(video_section, anti_aliasing_key, Viewport.MSAA_DISABLED)
msaa_2d = anti_aliasing as MSAA
msaa_3d = anti_aliasing as MSAA
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.