示例#1
0
def charmenu(cReadout):
	#debug Options
	cDebug1=""
	cDebug2=""
	if debug:
		cDebug1="+[11] Check Character Generation Modules\n"
		cDebug2="+[12] Check Character Generation Modules\n"
	#header
	print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n==========Character Generation==========\n")
	#readout for char
	if cReadout==999:print(invalid)
	elif cReadout==1:dice.displayCurrent()
		#cReadout 1 needs to be expanded to display all current character information
	elif cReadout==2:return attributeMenu(0)
	elif cReadout==11:ruleCheckList()
	elif cReadout==12:print(dice.moduleCheck())
	else:print("")
	#options list, it references debug options
	print("\n[1] Display Current Character Information\n%s%s[2] Attribute Managment\n[/] or [t] Main Menu\n[*] or [q] Quit Program" % (cDebug1, cDebug2))
	#CharMenu input
	menuSel=raw_input(plsEn)
	if menuSel in("t","/"):return mainmenu(0)
	elif menuSel=="1":return charmenu(1)
	elif menuSel=="2":return charmenu(2)
	elif menuSel in ("*", "q"):return quit()
	#CharMenu Debug Options
	elif menuSel=="11" and debug:return charmenu(11)
	elif menuSel=="12" and debug:return charmenu(12)
	#Return invalid entry
	else:return charmenu(999)
示例#2
0
def mainmenu(mReadout):
	#debug readouts
	mDebug1=""
	if debug:mDebug1="+[11] Check Character Generation Modules\n"
	#header
	print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n==========Main Menu==========\n")
	#readout for main
	if mReadout==999:print(invalid)
	elif mReadout==11:ruleCheckList()
	elif mReadout==991:print("%s\n%s" % (ruleCheckList(), dice.moduleCheck()))
	else:print("")
	#Options list, it references debug options
	print("\n[1] Character Generation\n%s[2] Options\n[3] Utilities\n[*] or [q] Quit Program" % (mDebug1))
	#menu input for main
	menuSel=raw_input(plsEn)
	if menuSel in("t","/"):return mainmenu(0)
	elif menuSel=="1":return charmenu(0)
	elif menuSel=="2":return optionsmenu(0)
	elif menuSel=="3":return utilitymenu(0)
	#mainmenu debug inputs
	elif menuSel=="11" and debug:return mainmenu(11)
	elif menuSel in ("*", "q"):return quit()
	#Return invalid entry
	else:return mainmenu(999)