Fix customizer GUI yaml selection

This commit is contained in:
aerinon
2022-05-12 14:38:53 -06:00
parent 8d5fe30889
commit dbb69359aa
2 changed files with 6 additions and 0 deletions

View File

@@ -166,6 +166,7 @@ Same as above but both small keys and bigs keys of the dungeon are not allowed o
#### Customizer
* Fixed up the GUI selection of the customizer file.
* Fixed up the item_pool section to skip a lot of pool manipulations. Key items will be added (like the bow) if not detected. Extra dungeon items can be added to the pool and will be confined to the dungeon if possible (and not shuffled). If the pool isn't full, junk items are added to the pool to fill it out.
#### Volatile

View File

@@ -220,6 +220,11 @@ def create_guiargs(parent):
# Get baserom path
guiargs.rom = parent.pages["randomizer"].pages["generation"].widgets["rom"].storageVar.get()
# Get customizer path
customizer_value = parent.pages["randomizer"].pages["generation"].widgets["customizer"].storageVar.get()
if customizer_value and customizer_value != 'None':
guiargs.customizer = customizer_value
# Get if we're using the Custom Item Pool
guiargs.custom = bool(parent.pages["randomizer"].pages["generation"].widgets["usecustompool"].storageVar.get())