Ejemplo n.º 1
0
def wrap(string):
    foot = menu.show_header(context[0])
    print string
    print foot
Ejemplo n.º 2
0
def wrap(string):
	foot = menu.show_header(context[0])
	print string
	print foot
Ejemplo n.º 3
0
    print string
    print foot


# Show a usage string.
def usage(cmd):
    return "Usage: " + commands.usage[cmd]


### Mainloop ###

clear()
if len(sys.argv) > 1:
    open_story(sys.argv[1])

while running:
    clear()

    if len(body):
        wrap(body)
        body = ""
    else:
        menu.show_header(context[0])

    if context[1] == "INIT":  # Initial Menu
        command_handler(menu.menu_initial(), cmdlist_init)
    elif context[1] == "STORY":  # Story Menu
        command_handler(menu.menu_story(), cmdlist_story)
    elif context[1] == "SCENE":  # Scene Menu
        command_handler(menu.menu_scene(), cmdlist_scene)
Ejemplo n.º 4
0
	foot = menu.show_header(context[0])
	print string
	print foot

# Show a usage string.
def usage(cmd):
	return "Usage: "+commands.usage[cmd]

### Mainloop ###

clear()
if len(sys.argv) > 1:
	open_story(sys.argv[1])

while running:
	clear()
	
	if len(body):
		wrap(body)
		body = ""
	else:
		menu.show_header(context[0])

	if context[1] == "INIT": # Initial Menu
		command_handler(menu.menu_initial(), cmdlist_init)
	elif context[1] == "STORY": # Story Menu
		command_handler(menu.menu_story(), cmdlist_story)
	elif context[1] == "SCENE": # Scene Menu
		command_handler(menu.menu_scene(), cmdlist_scene)