Exemplo n.º 1
0
def show():
	init()

	common.subscreen_event_handler = event_handler
	common.subscreen_timer_handler = timer_tick
	common.draw_background()
	common.pguapp.init(t, common.screen)
Exemplo n.º 2
0
def show():
	init()

	global input_user
	input_user = pgui.Input(value=config.cp.get('auth', 'canonical_name'))

	common.draw_background()
	common.pguapp.init(t, common.screen)
Exemplo n.º 3
0
def show():
	init()

	global input_nick
	nick = config.cp.get('multiplayer', 'last_nick')
	if nick == '':
		nick = config.cp.get('auth', 'canonical_name')
	input_nick.value = nick

	common.draw_background()
	common.pguapp.init(t, common.screen)
Exemplo n.º 4
0
def handle_event(ev):
	if(ev.type != pygame.MOUSEMOTION):
		return

	global last_mpos
	if last_mpos:
		pos_diff = [b - a for a,b in zip(ev.pos, last_mpos)]

		common.scroll_background(*pos_diff)
		common.draw_background()
		backbtn.repaint()

	last_mpos = ev.pos
Exemplo n.º 5
0
def show():
	init()

	common.draw_background()
	common.pguapp.init(t, common.screen)
Exemplo n.º 6
0
def show():
	init()

	common.subscreen_event_handler = handle_event
	common.draw_background()
	common.pguapp.init(t, common.screen)