bauiv1lib.store package

Submodules

bauiv1lib.store.browser module

UI for browsing the store.

class bauiv1lib.store.browser.StoreBrowserWindow(transition: str | None = 'in_right', origin_widget: Widget | None = None, *, show_tab: TabID | None = None, minimal_toolbars: bool = False, auxiliary_style: bool = True)[source]

Bases: MainWindow

Window for browsing the store.

class TabID(*values)[source]

Bases: Enum

Our available tab types.

CHARACTERS = 'characters'
ICONS = 'icons'
MAPS = 'maps'
MINIGAMES = 'minigames'
buy(item: str) None[source]

Attempt to purchase the provided item.

get_main_window_state() MainWindowState[source]

Return a WindowState to recreate this specific window.

Used to gracefully return to a window from another window or ui system.

main_window_should_preserve_selection() bool[source]

Whether this window should auto-save/restore selection.

If enabled, selection will be stored in the window’s shared state. See get_main_window_shared_state_id() for more info about main-window shared-state.

The default value of None results in a warning to explicitly override this (as the implicit default will change from False to True after api 9 support ends).

update_buttons() None[source]

Update our buttons.

bauiv1lib.store.item module

UI functionality related to UI items.

bauiv1lib.store.item.instantiate_store_item_display(item_name: str, item: dict[str, Any], *, parent_widget: Widget, b_pos: tuple[float, float], b_width: float, b_height: float, idprefix: str, boffs_h: float = 0.0, boffs_h2: float = 0.0, boffs_v2: float = 0, delay: float = 0.0, button: bool = True) None[source]

(internal)