Sort Entrance Randomizer

This commit is contained in:
Mike A. Trethewey
2020-02-08 11:08:58 -08:00
parent 1059c9b40a
commit 441a3a7452
2 changed files with 35 additions and 22 deletions

27
gui/randomize/entrando.py Normal file
View File

@@ -0,0 +1,27 @@
from tkinter import ttk, IntVar, StringVar, Checkbutton, Frame, Label, OptionMenu, E, W, LEFT, RIGHT
def entrando_page(parent):
# Entrance Randomizer
self = ttk.Frame(parent)
# Entrance Randomizer options
## Pyramid pre-opened
self.openpyramidVar = IntVar()
openpyramidCheckbutton = Checkbutton(self, text="Pre-open Pyramid Hole", variable=self.openpyramidVar)
openpyramidCheckbutton.pack(anchor=W)
## Shuffle Ganon
self.shuffleGanonVar = IntVar()
self.shuffleGanonVar.set(1) #set default
shuffleGanonCheckbutton = Checkbutton(self, text="Include Ganon's Tower and Pyramid Hole in shuffle pool", variable=self.shuffleGanonVar)
shuffleGanonCheckbutton.pack(anchor=W)
## Entrance Shuffle
shuffleFrame = Frame(self)
self.shuffleVar = StringVar()
self.shuffleVar.set('vanilla')
shuffleOptionMenu = OptionMenu(shuffleFrame, self.shuffleVar, 'vanilla', 'simple', 'restricted', 'full', 'crossed', 'insanity', 'restricted_legacy', 'full_legacy', 'madness_legacy', 'insanity_legacy', 'dungeonsfull', 'dungeonssimple')
shuffleOptionMenu.pack(side=RIGHT)
shuffleLabel = Label(shuffleFrame, text='Entrance shuffle algorithm')
shuffleLabel.pack(side=LEFT)
shuffleFrame.pack(anchor=W)
return self