Implement save system

Add to .gitignore
Add to default CLI args
Add to each page that needs it
* Rom Adjuster
* Seed
* Generation attempts
* Enemizer CLI path
* Base ROM
* Multiworld worlds
* Multiworld names
This commit is contained in:
Mike A. Trethewey
2020-02-08 19:01:15 -08:00
parent 2c91550e50
commit 03431f0b83
8 changed files with 64 additions and 45 deletions

View File

@@ -4,7 +4,7 @@ from argparse import Namespace
from classes.SpriteSelector import SpriteSelector
import logging
def adjust_page(top,parent):#,working_dirs):
def adjust_page(top,parent,working_dirs):
self = ttk.Frame(parent)
# Disable BGM
@@ -101,14 +101,13 @@ def adjust_page(top,parent):#,working_dirs):
adjustRomFrame = Frame(bottomAdjustFrame)
adjustRomLabel = Label(adjustRomFrame, text='Rom to adjust: ')
self.romVar2 = StringVar()
# romVar2 = StringVar(value=working_dirs["adjust.rom"])
self.romVar2 = StringVar(value=working_dirs["adjust.rom"])
romEntry2 = Entry(adjustRomFrame, textvariable=self.romVar2)
def RomSelect2():
rom = filedialog.askopenfilename(filetypes=[("Rom Files", (".sfc", ".smc")), ("All Files", "*")])
if rom:
# working_dirs["adjust.rom"] = rom
working_dirs["adjust.rom"] = rom
self.romVar2.set(rom)
romSelectButton2 = Button(adjustRomFrame, text='Select Rom', command=RomSelect2)
@@ -140,4 +139,4 @@ def adjust_page(top,parent):#,working_dirs):
adjustButton = Button(bottomAdjustFrame, text='Adjust Rom', command=adjustRom)
adjustButton.pack(side=BOTTOM, padx=(5, 0))
return self#,working_dirs
return self,working_dirs