diff --git a/project.godot b/project.godot index 737fb88..4bcd87a 100644 --- a/project.godot +++ b/project.godot @@ -90,6 +90,7 @@ name_casing=1 [rendering] +quality/driver/driver_name="GLES2" quality/intended_usage/framebuffer_allocation=0 quality/intended_usage/framebuffer_allocation.mobile=0 quality/2d/use_pixel_snap=true diff --git a/scripts/wardrobe.gd b/scripts/wardrobe.gd index a70542a..eea53e8 100644 --- a/scripts/wardrobe.gd +++ b/scripts/wardrobe.gd @@ -10,13 +10,19 @@ onready var undies_grid = $Underwear/UndiesScroll/UndiesGrid onready var accs_grid = $Accessoires/AccsScroll/AccsGrid func _ready(): - var load_pck = ProjectSettings.load_resource_pack("user://dlc/pack.pck") + var dir = Directory.new() - if load_pck == true: - # All the button scenes are consolidated - # in a root scene and and each parent - # is instanced to their respective grid - var import_scene = load("res://scenes/dlc/pants.tscn") + if dir.open("user://dlc") == OK: + dir.list_dir_begin() + if "pck" in dir.get_next() == true: + var load_pcks = ProjectSettings.load_resource_pack(dir.get_next(), false) + if load_pcks == true: + if dir.open("res://scenes/dlc") == OK: + var file_name = dir.get_next() + dir.change_dir("shirts") + if dir.current_is_dir() == "shirts": + var shirt_dlc = load(dir.get_next()) + shirts_grid.get_children(shirt_dlc) func _on_removeAccessory_pressed(): character.accessory = blank_top