Example #1
0
	def event_action_menu(self, event):
		sel = self.player.selected
		from pygui.menu.menu import ActionMenu
		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, universe=self.player.universe)
		s.show()
		if sel == None:
			s.select(-1)
			s.select(1)
		return True
Example #2
0
	i: 
	o: 59(t), 83(f)

nname: 0&46
n 0&46(None)[sel = self.player.selected
from pygui.menu.menu import ActionMenu
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, universe=self.player.universe)
s.show()
if sel == None:
	s.select(-1)
	s.select(1)
return True
]:
	i: 
	o: 

self.nodes: {'0&46': <unpyclib.structure.node instance at 0xb775ccec>}
nname: 239
n 239(None)[return True
]:
	i: 83(), 229()
	o: 

nname: 229
n 229(None)[play._update_marker()