Initial commit

This commit is contained in:
2026-01-21 23:51:53 +01:00
commit 60b208fee0
1703 changed files with 100223 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
extends Node
@onready var syncedFeatures: ConfigFile = ConfigFile.new()
@onready var settingsmenu = $/root/Main/Settingsmenu/VBoxContainer/MarginContainer2/HBoxContainer/VBoxContainer
@onready var config : ConfigFile = ConfigFile.new()
func _ready() -> void:
var ms = MultiplayerSynchronizer.new()
var spg = SceneReplicationConfig.new()
var ppath = name + ":syncedFeatures"
spg.add_property(ppath)
ms.replication_config = spg
$/root.add_child.call_deferred(ms)
var err = config.load("user://config.cfg")
if err != OK:
config.load("res://defaultconfig.cfg")
if err == ERR_FILE_NOT_FOUND:
push_warning("New config file created")
config.save("user://config.cfg")
else:
push_error("Failed to load config: " + str(err) + "\n Loading default config.")
if Featuremanager.get_feature("debug","value", false) == true:
push_warning("Debugmode is set to true -> Loading default config")
config.load("res://defaultconfig.cfg")
update_menu()
for feature in config.get_sections():
if config.has_section_key(feature,"synced"):
for keys in config.get_section_keys(feature):
pass
#syncedFeatures.set(feature,config.get_value(feature,key))
# @param featurename: Test
func get_feature(featurename: String, key: String, default = false):
if !config.has_section_key(featurename,key):
return default
return config.get_value(featurename, key)
func set_feature_key(featurename: String, key: String, value):
config.set_value(featurename, key,value)
func remove_feature(featurename: String):
config.erase_section(featurename)
func remove_feature_key(featurename: String, key: String):
config.erase_section_key(featurename, key)
func update_menu():
for feature in config.get_sections():
var container = HBoxContainer.new()
container.size_flags_vertical = Control.SIZE_EXPAND_FILL
container.name = feature
var label = Label.new()
label.text = feature
container.add_child(label)
var control : Control
match config.get_value(feature,"mode","_"):
"check":
control = CheckButton.new()
"color:":
control = ColorPickerButton.new()
"text":
control = LineEdit.new()
"menu":
control = OptionButton.new()
"button":
control = Button.new()
_:
control = Button.new()
container.add_child(control)
settingsmenu.add_child(container)

View File

@@ -0,0 +1,53 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://b8gi7rdc1a5j3"
path="res://.godot/imported/Controll.blend-87dfc81437cc0901182983fd6dc61a63.scn"
[deps]
source_file="res://assets/3D/Rooms/Controll.blend"
dest_files=["res://.godot/imported/Controll.blend-87dfc81437cc0901182983fd6dc61a63.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={}
blender/nodes/visible=0
blender/nodes/active_collection_only=false
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/export_geometry_nodes_instances=false
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true