allow creation of diff files from gui

This commit is contained in:
Fabian Dill 2020-08-20 03:41:37 +02:00
parent c9bd32a809
commit 154ab88bda
1 changed files with 10 additions and 4 deletions

8
Gui.py
View File

@ -79,7 +79,8 @@ def guiMain(args=None):
retroCheckbutton = Checkbutton(checkBoxFrame, text="Retro mode (universal keys)", variable=retroVar)
shuffleGanonVar = IntVar()
shuffleGanonVar.set(1) # set default
shuffleGanonCheckbutton = Checkbutton(checkBoxFrame, text="Include Ganon's Tower and Pyramid Hole in shuffle pool", variable=shuffleGanonVar)
shuffleGanonCheckbutton = Checkbutton(checkBoxFrame, text="Include Ganon's Tower and Pyramid Hole in shuffle pool",
variable=shuffleGanonVar)
hintsVar = IntVar()
hintsVar.set(1) # set default
hintsCheckbutton = Checkbutton(checkBoxFrame, text="Include Helpful Hints", variable=hintsVar)
@ -88,6 +89,9 @@ def guiMain(args=None):
balancingVar = IntVar()
balancingVar.set(1) # set default
balancingCheckbutton = Checkbutton(checkBoxFrame, text="Multiworld Progression Balancing", variable=balancingVar)
patchesVar = IntVar()
patchesVar.set(1) # set default
patchesCheckbutton = Checkbutton(checkBoxFrame, text="Create Delta Patches", variable=patchesVar)
createSpoilerCheckbutton.pack(expand=True, anchor=W)
suppressRomCheckbutton.pack(expand=True, anchor=W)
openpyramidCheckbutton.pack(expand=True, anchor=W)
@ -102,6 +106,7 @@ def guiMain(args=None):
hintsCheckbutton.pack(expand=True, anchor=W)
customCheckbutton.pack(expand=True, anchor=W)
balancingCheckbutton.pack(expand=True, anchor=W)
patchesCheckbutton.pack(expand=True, anchor=W)
romOptionsFrame = LabelFrame(rightHalfFrame, text="Rom options")
romOptionsFrame.columnconfigure(0, weight=1)
@ -518,6 +523,7 @@ def guiMain(args=None):
int(bomb10Var.get()), int(triforceVar.get()),
int(rupoorcostVar.get()), int(universalkeyVar.get())]
guiargs.rom = romVar.get()
guiargs.create_diff = patchesVar.get()
guiargs.sprite = sprite
# get default values for missing parameters
for k,v in vars(parse_arguments(['--multi', str(guiargs.multi)])).items():