dynamic menu and menu music

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-18 21:51:12 -07:00
parent 1f13716d42
commit a9efa66b09
18 changed files with 386 additions and 41 deletions

View file

@ -1,12 +1,16 @@
extends Node
var FOV = 80
var config = ConfigFile.new()
var msaa = 1
var ssaa = 1
var scaling = 0
var theme = 0
var shadows = 1
var FOV : float = 80
var msaa : int = 1
var ssaa : int = 1
var scaling : int = 0
var theme : int = 0
var shadows : int = 1
var title_music : int = 1
var title_dynamic : int = 1
var mouse_sens : float = 1.0
var theme_index = [
"res://UI/Themes/Dark.tres",
@ -40,6 +44,9 @@ func updateConfig():
config.set_value("GRAPHICS", "shadows", shadows)
config.set_value("INTERFACE", "scaling", scaling)
config.set_value("INTERFACE", "theme", theme)
config.set_value("INTERFACE", "title_music", title_music)
config.set_value("INTERFACE", "title_dynamic", title_dynamic)
config.set_value("INPUT", "mouse_sens", mouse_sens)
config.save("user://settings.cfg")
func loadConfig():
@ -48,13 +55,17 @@ func loadConfig():
if err != OK:
print("Couldn't load config!")
return
FOV = config.get_value("GRAPHICS", "fov")
msaa = config.get_value("GRAPHICS", "msaa")
ssaa = config.get_value("GRAPHICS", "ssaa")
shadows = config.get_value("GRAPHICS", "shadows")
scaling = config.get_value("INTERFACE", "scaling")
theme = config.get_value("INTERFACE", "theme")
title_music = config.get_value("INTERFACE", "title_music")
title_dynamic = config.get_value("INTERFACE", "title_dynamic")
mouse_sens = config.get_value("INPUT", "mouse_sens")
print("config loaded.")
# set msaa