Ballistica Logo

bauiv1lib.profile package

Submodules

bauiv1lib.profile.browser module

UI functionality related to browsing player profiles.

class bauiv1lib.profile.browser.ProfileBrowserWindow(transition: str | None = 'in_right', selected_profile: str | None = None, origin_widget: Widget | None = None, minimal_toolbar: bool = False)[source]

Bases: MainWindow

Window for browsing player profiles.

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.

bauiv1lib.profile.edit module

Provides UI to edit a player profile.

class bauiv1lib.profile.edit.EditProfileWindow(existing_profile: str | None, transition: str | None = 'in_right', origin_widget: Widget | None = None)[source]

Bases: MainWindow, CharacterPickerDelegate, IconPickerDelegate

Window for editing a player profile.

assign_random_name() None[source]

Assigning a random name to the player.

color_picker_closing(picker: ColorPicker) None[source]

Called when a color picker is closing.

color_picker_selected_color(picker: ColorPicker, color: tuple[float, float, float]) None[source]

Called when a color is selected in a color picker.

get_main_window_state() MainWindowState[source]

Return a WindowState to recreate this window, if supported.

getname() str[source]

Return the current profile name value.

on_character_picker_get_more_press() None[source]

Called when the ‘get more characters’ button is pressed.

on_character_picker_pick(character: str) None[source]

A character has been selected by the picker.

on_icon_picker_get_more_press() None[source]

User wants to get more icons.

on_icon_picker_pick(icon: str) None[source]

An icon has been selected by the picker.

refresh_characters() None[source]

Refresh available characters/icons.

reload_window() None[source]

Transitions out and recreates ourself.

save(transition_out: bool = True) bool[source]

Save has been selected.

show_account_profile_info() None[source]

Show an explanation of account profiles.

show_global_profile_info() None[source]

Show an explanation of global profiles.

show_local_profile_info() None[source]

Show an explanation of local profiles.

upgrade_profile() None[source]

Attempt to upgrade the profile to global.

bauiv1lib.profile.upgrade module

UI for player profile upgrades.

class bauiv1lib.profile.upgrade.ProfileUpgradeWindow(edit_profile_window: EditProfileWindow, transition: str = 'in_right')[source]

Bases: Window

Window for player profile upgrades to global.

Module contents