Ballistica Logo

bauiv1lib.league package

Submodules

bauiv1lib.league.rankbutton module

Provides a button showing league rank.

class bauiv1lib.league.rankbutton.LeagueRankButton(parent: bui.Widget, position: tuple[float, float], size: tuple[float, float], scale: float, *, on_activate_call: Callable[[], Any] | None = None, transition_delay: float | None = None, color: tuple[float, float, float] | None = None, textcolor: tuple[float, float, float] | None = None, smooth_update_delay: float | None = None)[source]

Bases: object

Button showing league rank.

get_button() Widget[source]

Return the underlying button bui.Widget>

set_position(position: tuple[float, float]) None[source]

Set the button’s position.

bauiv1lib.league.rankwindow module

UI related to league rank.

class bauiv1lib.league.rankwindow.LeagueRankWindow(transition: str | None = 'in_right', origin_widget: Widget | None = None)[source]

Bases: MainWindow

Window for showing league rank.

get_main_window_state() MainWindowState[source]

Return a WindowState to recreate this window, if supported.

on_main_window_close() None[source]

Called before transitioning out a main window.

A good opportunity to save window state/etc.

Module contents

League related UI functionality.