Ballistica Logo

bauiv1lib.coop package

Submodules

bauiv1lib.coop.browser module

UI for browsing available co-op levels/games/etc.

class bauiv1lib.coop.browser.CoopBrowserWindow(transition: str | None = 'in_right', origin_widget: Widget | None = None)[source]

Bases: Window

Window for browsing co-op levels/games/etc.

is_tourney_data_up_to_date() bool[source]

Return whether our tourney data is up to date.

run_game(game: str) None[source]

Run the provided game.

run_tournament(tournament_button: TournamentButton) None[source]

Run the provided tournament game.

sel_change(row: str, game: str) None[source]

(internal)

bauiv1lib.coop.gamebutton module

Defines button for co-op games.

class bauiv1lib.coop.gamebutton.GameButton(window: CoopBrowserWindow, parent: bui.Widget, game: str, x: float, y: float, select: bool, row: str)[source]

Bases: object

Button for entering co-op games.

get_button() Widget[source]

Return the underlying button bui.Widget.

bauiv1lib.coop.level module

Bits of utility functionality related to co-op levels.

class bauiv1lib.coop.level.CoopLevelLockedWindow(name: Lstr, dep_name: Lstr)[source]

Bases: Window

Window showing that a level is locked.

bauiv1lib.coop.tournamentbutton module

Defines button for co-op games.

class bauiv1lib.coop.tournamentbutton.TournamentButton(parent: bui.Widget, x: float, y: float, select: bool, on_pressed: Callable[[TournamentButton], None])[source]

Bases: object

Button showing a tournament in coop window.

update_for_data(entry: dict[str, Any]) None[source]

Update for new incoming data.

Module contents