Пример #1
0
	def event_action_menu(self, event):
		w = LoadingWindow()
		w.show()
		from pygui.menu.menu import ActionMenu
		sel = self.player.selected
		parent = None
		if sel is None and self.player._history:
			parent = self.player._history[-1]['selected']
		else:
			parent = sel.parent
		context = dict(menu=self.player, selected=sel, parent=parent)
		s = ActionMenu(context, type_='playeraction', category='player', universe=self.player.universe)
		if s.get_item_list('main_list'):
			s.show()
			if not s.get_item_list('options_list'):
				louie_send('empty_options', sender=s)
			else:
				louie_send('not_empty_options', sender=s)
			w.hide()
		else:
			w.hide()
			self.player._error_spawner()
		return True
Пример #2
0
nname: 293
n 293(None)[return True
]:
	i: 193(), 269()
	o: 

nname: 269
n 269(None)[w.hide()
self.player._error_spawner()
]:
	i: 0&65(f)
	o: 293()

nname: 193
n 193(None)[s.show()
if not s.get_item_list('options_list'):
	louie_send('empty_options', sender=s)
else:
	louie_send('not_empty_options', sender=s)
w.hide()
]:
	i: 0&65(t)
	o: 293()

nname: 0&65
n 0&65(s.get_item_list('main_list'))[w = LoadingWindow()
w.show()
from pygui.menu.menu import ActionMenu
sel = self.player.selected
parent = None
if sel is None and self.player._history: