Multiworld Widgets
This commit is contained in:
@@ -88,7 +88,7 @@ def bottom_frame(self, parent, args=None):
|
||||
|
||||
def create_guiargs(parent):
|
||||
guiargs = Namespace()
|
||||
guiargs.multi = int(parent.pages["randomizer"].pages["multiworld"].multiworldWidgets["worlds"].storageVar.get())
|
||||
guiargs.multi = int(parent.pages["randomizer"].pages["multiworld"].widgets["worlds"].storageVar.get())
|
||||
guiargs.names = parent.pages["randomizer"].pages["multiworld"].namesVar.get()
|
||||
guiargs.seed = int(parent.frames["bottom"].seedVar.get()) if parent.frames["bottom"].seedVar.get() else None
|
||||
guiargs.count = int(parent.frames["bottom"].widgets["generationcount"].storageVar.get()) if parent.frames["bottom"].widgets["generationcount"].storageVar.get() != '1' else None
|
||||
|
||||
@@ -20,7 +20,7 @@ def loadcliargs(gui, args):
|
||||
gui.pages["randomizer"].pages["gameoptions"].gameOptionsWidgets["quickswap"].storageVar.set(int(args.quickswap))
|
||||
gui.pages["randomizer"].pages["gameoptions"].gameOptionsWidgets["nobgm"].storageVar.set(int(args.disablemusic))
|
||||
if args.multi:
|
||||
gui.pages["randomizer"].pages["multiworld"].multiworldWidgets["worlds"].storageVar.set(str(args.multi))
|
||||
gui.pages["randomizer"].pages["multiworld"].widgets["worlds"].storageVar.set(str(args.multi))
|
||||
if args.count:
|
||||
gui.frames["bottom"].widgets["generationcount"].storageVar.set(str(args.count))
|
||||
if args.seed:
|
||||
|
||||
@@ -6,11 +6,11 @@ def multiworld_page(parent,settings):
|
||||
self = ttk.Frame(parent)
|
||||
|
||||
# Multiworld options
|
||||
self.multiworldWidgets = {}
|
||||
self.widgets = {}
|
||||
|
||||
## Number of Worlds
|
||||
key = "worlds"
|
||||
self.multiworldWidgets[key] = widgets.make_widget(
|
||||
self.widgets[key] = widgets.make_widget(
|
||||
self,
|
||||
"spinbox",
|
||||
self,
|
||||
@@ -18,7 +18,7 @@ def multiworld_page(parent,settings):
|
||||
None,
|
||||
{"label": {"side": LEFT}, "spinbox": {"side": RIGHT}}
|
||||
)
|
||||
self.multiworldWidgets[key].pack(side=LEFT, anchor=N)
|
||||
self.widgets[key].pack(side=LEFT, anchor=N)
|
||||
|
||||
## List of Player Names
|
||||
namesFrame = Frame(self)
|
||||
|
||||
Reference in New Issue
Block a user