mirror of
https://github.com/tonytins/dressupzack
synced 2025-05-07 14:04:48 -04:00
Finished commenting
This commit is contained in:
parent
fce9a95c0e
commit
b88e55eb52
1 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue