Move MW to Bottom
This commit is contained in:
6
Gui.py
6
Gui.py
@@ -14,7 +14,7 @@ from source.gui.randomize.item import item_page
|
|||||||
from source.gui.randomize.entrando import entrando_page
|
from source.gui.randomize.entrando import entrando_page
|
||||||
from source.gui.randomize.enemizer import enemizer_page
|
from source.gui.randomize.enemizer import enemizer_page
|
||||||
from source.gui.randomize.dungeon import dungeon_page
|
from source.gui.randomize.dungeon import dungeon_page
|
||||||
from source.gui.randomize.multiworld import multiworld_page
|
#from source.gui.randomize.multiworld import multiworld_page
|
||||||
from source.gui.randomize.gameoptions import gameoptions_page
|
from source.gui.randomize.gameoptions import gameoptions_page
|
||||||
from source.gui.randomize.generation import generation_page
|
from source.gui.randomize.generation import generation_page
|
||||||
from source.gui.bottom import bottom_frame, create_guiargs
|
from source.gui.bottom import bottom_frame, create_guiargs
|
||||||
@@ -132,8 +132,8 @@ def guiMain(args=None):
|
|||||||
self.pages["randomizer"].notebook.add(self.pages["randomizer"].pages["dungeon"], text="Dungeon Shuffle")
|
self.pages["randomizer"].notebook.add(self.pages["randomizer"].pages["dungeon"], text="Dungeon Shuffle")
|
||||||
|
|
||||||
# Multiworld
|
# Multiworld
|
||||||
self.pages["randomizer"].pages["multiworld"],self.settings = multiworld_page(self.pages["randomizer"].notebook,self.settings)
|
# self.pages["randomizer"].pages["multiworld"],self.settings = multiworld_page(self.pages["randomizer"].notebook,self.settings)
|
||||||
self.pages["randomizer"].notebook.add(self.pages["randomizer"].pages["multiworld"], text="Multiworld")
|
# self.pages["randomizer"].notebook.add(self.pages["randomizer"].pages["multiworld"], text="Multiworld")
|
||||||
|
|
||||||
# Game Options
|
# Game Options
|
||||||
self.pages["randomizer"].pages["gameoptions"] = gameoptions_page(self, self.pages["randomizer"].notebook)
|
self.pages["randomizer"].pages["gameoptions"] = gameoptions_page(self, self.pages["randomizer"].notebook)
|
||||||
|
|||||||
@@ -256,10 +256,8 @@
|
|||||||
"randomizer.item.sortingalgo.balanced": "Balanced",
|
"randomizer.item.sortingalgo.balanced": "Balanced",
|
||||||
|
|
||||||
|
|
||||||
"randomizer.multiworld.worlds": "Worlds",
|
"bottom.content.worlds": "Worlds",
|
||||||
"randomizer.multiworld.names": "Player names",
|
"bottom.content.names": "Player names",
|
||||||
|
|
||||||
|
|
||||||
"bottom.content.seed": "Seed #",
|
"bottom.content.seed": "Seed #",
|
||||||
"bottom.content.generationcount": "Count",
|
"bottom.content.generationcount": "Count",
|
||||||
"bottom.content.go": "Generate Patched Rom",
|
"bottom.content.go": "Generate Patched Rom",
|
||||||
|
|||||||
@@ -90,9 +90,6 @@ SETTINGSTOPROCESS = {
|
|||||||
"experimental": "experimental",
|
"experimental": "experimental",
|
||||||
"dungeon_counters": "dungeon_counters"
|
"dungeon_counters": "dungeon_counters"
|
||||||
},
|
},
|
||||||
"multiworld": {
|
|
||||||
"names": "names"
|
|
||||||
},
|
|
||||||
"gameoptions": {
|
"gameoptions": {
|
||||||
"hints": "hints",
|
"hints": "hints",
|
||||||
"nobgm": "disablemusic",
|
"nobgm": "disablemusic",
|
||||||
@@ -113,6 +110,7 @@ SETTINGSTOPROCESS = {
|
|||||||
},
|
},
|
||||||
"bottom": {
|
"bottom": {
|
||||||
"content": {
|
"content": {
|
||||||
|
"names": "names",
|
||||||
"seed": "seed",
|
"seed": "seed",
|
||||||
"generationcount": "count"
|
"generationcount": "count"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ from CLI import parse_arguments
|
|||||||
from Main import main
|
from Main import main
|
||||||
from Utils import local_path, output_path, open_file
|
from Utils import local_path, output_path, open_file
|
||||||
import source.classes.constants as CONST
|
import source.classes.constants as CONST
|
||||||
|
from source.gui.randomize.multiworld import multiworld_page
|
||||||
import source.gui.widgets as widgets
|
import source.gui.widgets as widgets
|
||||||
from source.classes.Empty import Empty
|
from source.classes.Empty import Empty
|
||||||
|
|
||||||
@@ -18,6 +19,10 @@ def bottom_frame(self, parent, args=None):
|
|||||||
# Bottom Frame options
|
# Bottom Frame options
|
||||||
self.widgets = {}
|
self.widgets = {}
|
||||||
|
|
||||||
|
mw,_ = multiworld_page(self, parent.settings)
|
||||||
|
mw.pack(fill=X, expand=True)
|
||||||
|
self.widgets = mw.widgets
|
||||||
|
|
||||||
# Seed input
|
# Seed input
|
||||||
# widget ID
|
# widget ID
|
||||||
widget = "seed"
|
widget = "seed"
|
||||||
|
|||||||
@@ -96,8 +96,8 @@ def loadcliargs(gui, args, settings=None):
|
|||||||
gui.pages[mainpage].pages[subpage].widgets[widget].pieces["button"].configure(text=label)
|
gui.pages[mainpage].pages[subpage].widgets[widget].pieces["button"].configure(text=label)
|
||||||
|
|
||||||
# Get Multiworld Worlds count
|
# Get Multiworld Worlds count
|
||||||
mainpage = "randomizer"
|
mainpage = "bottom"
|
||||||
subpage = "multiworld"
|
subpage = "content"
|
||||||
widget = "worlds"
|
widget = "worlds"
|
||||||
setting = "multi"
|
setting = "multi"
|
||||||
# set textbox/frame label
|
# set textbox/frame label
|
||||||
@@ -108,8 +108,8 @@ def loadcliargs(gui, args, settings=None):
|
|||||||
gui.pages[mainpage].pages[subpage].widgets[widget].storageVar.set(str(args[setting]))
|
gui.pages[mainpage].pages[subpage].widgets[widget].storageVar.set(str(args[setting]))
|
||||||
|
|
||||||
# Set Multiworld Names
|
# Set Multiworld Names
|
||||||
mainpage = "randomizer"
|
mainpage = "bottom"
|
||||||
subpage = "multiworld"
|
subpage = "content"
|
||||||
widget = "names"
|
widget = "names"
|
||||||
# set textbox/frame label
|
# set textbox/frame label
|
||||||
label = fish.translate("gui","gui",mainpage + '.' + subpage + '.' + widget)
|
label = fish.translate("gui","gui",mainpage + '.' + subpage + '.' + widget)
|
||||||
|
|||||||
Reference in New Issue
Block a user