def draw_menus():
	for menu in MENUS:
		_y_offset = menu['settings']['padding'][1]
		
		tcod.console_set_default_foreground(menu['settings']['console'], tcod.white)
		tcod.console_print(menu['settings']['console'],
			menu['settings']['padding'][0],
			_y_offset,
			menu['settings']['title'])
		
		_y_offset += 2		
		
		for item in menu['menu']:
			if item['type'] == 'title':
				tcod.console_set_default_foreground(menu['settings']['console'], tcod.white)
				_line = format_entry('- $k',item)
			elif item['type'] == 'spacer':
				tcod.console_set_default_foreground(menu['settings']['console'], tcod.white)
				_line = item['key']*(menu['settings']['size'][0]-menu['settings']['padding'][0])
			elif item['type'] == 'input':
				#TODO: Input check?
				if MENUS.index(menu) == ACTIVE_MENU['menu'] and menu['menu'].index(item) == menu['index'] and item['enabled']:
					#TODO: Colors
					tcod.console_set_default_foreground(menu['settings']['console'], item['color'][1])
				elif not item['enabled']:
					tcod.console_set_default_foreground(menu['settings']['console'], tcod.dark_sepia)
				elif menu['settings']['dim']:
					tcod.console_set_default_foreground(menu['settings']['console'], item['color'][0])
				
				_line = format_entry(menu['settings']['format'],item)
			else:
				if MENUS.index(menu) == ACTIVE_MENU['menu'] and menu['menu'].index(item) == menu['index'] and item['enabled']:
					#TODO: Colors
					tcod.console_set_default_foreground(menu['settings']['console'], item['color'][1])
				elif not item['enabled']:
					tcod.console_set_default_foreground(menu['settings']['console'], tcod.dark_sepia)
				elif menu['settings']['dim']:
					tcod.console_set_default_foreground(menu['settings']['console'], item['color'][0])
			
				#TODO: Per-item formats here
				_line = format_entry(menu['settings']['format'],item)
			
			tcod.console_print(menu['settings']['console'],
				menu['settings']['padding'][0],
				_y_offset,
				_line)
			
			_y_offset += 1
dataset/ETHPy150Open flags/Reactor-3/menus.py/draw_menus/original