1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-06 21:54:48 -04:00

Finished commenting

This commit is contained in:
Anthony Foxclaw 2020-07-06 04:36:40 -04:00
parent fce9a95c0e
commit b88e55eb52

View file

@ -34,12 +34,14 @@ func check_for_dlc(dlc_pack):
# Check if the DLC is actually there
if load_pck == true:
# Load the DLC
# Loads the DLC
ProjectSettings.load_resource_pack(dlc_path, false)
# Locates
var dir = Directory.new()
dir.list_dir_begin()
# Lists the files in each of their respective directories
var shirts_dir = "res://scenes/dlc/shirts/"
var pants_dir = "res://scenes/dlc/pants/"
var undies_dir = "res://scenes/dlc/undies/"
@ -47,7 +49,8 @@ func check_for_dlc(dlc_pack):
var dlc_pants = list_files_in_directory(pants_dir)
var dlc_undies = list_files_in_directory(undies_dir)
# Initialize and add nodes from each tab
# Make sure each file actually exist, instance them
# and add them to their respective tabs
for shirt in dlc_shirts:
if dir.file_exists(shirts_dir + shirt):
var init = load(shirts_dir + shirt).instance()