pyherc.gui.dialogs

Inventory

class pyherc.gui.dialogs.Inventory(application, screen, surface_manager=None, character=None)

Dialog for selecting one or more items from a list

show(list, multiple_selections=-1)

Displays dialog @param list: list of items to display @param multiple_selections: amount of items user is allowed to select @return: list of selected items @note: if multiple_selections is not specified, default to amount of items

sort_items(items)

Sort items according to their type @param items: items to sort @returns: list of sorted items

EndScreen

class pyherc.gui.dialogs.EndScreen(application, screen, surface_manager=None)

Dialog displayed at the end of the game

show(ending)

Display the end dialog

Args:
ending: Dictionary specifying various data of end condition

Table Of Contents

Previous topic

pyherc.gui

Next topic

pyherc.gui.images

This Page