Configuration
Defines utility functions to configure the default values used across the library.
- pygamepopup.configuration.set_button_background(button_background_path, button_hovered_background_path)
Set the default backgrounds for buttons.
- Keyword Arguments:
button_background_path (str) – the path to the background sprite to be set.
button_hovered_background_path (str) – the path to the background sprite when hovering to be set.
- pygamepopup.configuration.set_button_title_font(font)
Set the default font for the title of the buttons.
- Keyword Arguments:
font (pygame.font.Font) – the loaded font to be set.
- pygamepopup.configuration.set_close_button_text(text)
Set the default text for the close button of InfoBox.
- Keyword Arguments:
text (str) – the default text to be set.
- pygamepopup.configuration.set_dynamic_button_background(button_background_path, button_hovered_background_path)
Set the default backgrounds for dynamic buttons.
- Keyword Arguments:
button_background_path (str) – the path to the background sprite to be set.
button_hovered_background_path (str) – the path to the background sprite when hovering to be set.
- pygamepopup.configuration.set_dynamic_button_title_font(font)
Set the default font for the title of the dynamic buttons.
- Keyword Arguments:
font (pygame.font.Font) – the loaded font to be set.
- pygamepopup.configuration.set_info_box_background(info_box_background_path)
Set the default background for infoboxes.
- Keyword Arguments:
info_box_background_path (str) – the path to the background sprite to be set.
- pygamepopup.configuration.set_info_box_title_font(font)
Set the default font for the title of InfoBox.
- Keyword Arguments:
font (pygame.font.Font) – the loaded font to be set.
- pygamepopup.configuration.set_text_element_font(font)
Set the default font for the text of the text elements.
- Keyword Arguments:
font (pygame.font.Font) – the loaded font to be set.