mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
updated dummy modules
This commit is contained in:
parent
a748699245
commit
3d8121c744
6 changed files with 1507 additions and 982 deletions
1106
dist/dummymodules/_babase.py
vendored
1106
dist/dummymodules/_babase.py
vendored
File diff suppressed because it is too large
Load diff
122
dist/dummymodules/_baclassic.py
vendored
122
dist/dummymodules/_baclassic.py
vendored
|
|
@ -27,6 +27,8 @@ NOTE: This file was autogenerated by batools.dummymodule; do not edit by hand.
|
|||
# pylint: disable=redefined-outer-name
|
||||
# pylint: disable=invalid-name
|
||||
# pylint: disable=no-value-for-parameter
|
||||
# pylint: disable=unused-import
|
||||
# pylint: disable=too-many-positional-arguments
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
@ -45,10 +47,129 @@ def _uninferrable() -> Any:
|
|||
return _not_a_real_variable # type: ignore
|
||||
|
||||
|
||||
def animate_root_ui_chest_unlock_time(
|
||||
*,
|
||||
chestid: str,
|
||||
duration: float,
|
||||
startvalue: float,
|
||||
endvalue: float,
|
||||
) -> None:
|
||||
"""Animate the unlock time on a chest."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def animate_root_ui_tickets(
|
||||
*,
|
||||
duration: float,
|
||||
startvalue: int,
|
||||
endvalue: int,
|
||||
) -> None:
|
||||
"""Animate the displayed tickets value."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def animate_root_ui_tokens(
|
||||
*,
|
||||
duration: float,
|
||||
startvalue: int,
|
||||
endvalue: int,
|
||||
) -> None:
|
||||
"""Animate the displayed tokens value."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def classic_app_mode_activate() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def classic_app_mode_deactivate() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def classic_app_mode_handle_app_intent_default() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def classic_app_mode_handle_app_intent_exec(command: str) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def get_account_display_state() -> Any:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return _uninferrable()
|
||||
|
||||
|
||||
def set_account_display_state(vals: dict) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def set_have_live_account_values(have: bool) -> None:
|
||||
"""Inform the native layer whether we are being fed with live account
|
||||
values from the server.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def set_root_ui_account_values(
|
||||
*,
|
||||
tickets: int,
|
||||
tokens: int,
|
||||
league_type: str,
|
||||
league_number: int,
|
||||
league_rank: int,
|
||||
achievements_percent_text: str,
|
||||
level_text: str,
|
||||
xp_text: str,
|
||||
inbox_count: int,
|
||||
inbox_count_is_max: bool,
|
||||
inbox_announce_text: str,
|
||||
gold_pass: bool,
|
||||
chest_0_appearance: str,
|
||||
chest_1_appearance: str,
|
||||
chest_2_appearance: str,
|
||||
chest_3_appearance: str,
|
||||
chest_0_create_time: float,
|
||||
chest_1_create_time: float,
|
||||
chest_2_create_time: float,
|
||||
chest_3_create_time: float,
|
||||
chest_0_unlock_time: float,
|
||||
chest_1_unlock_time: float,
|
||||
chest_2_unlock_time: float,
|
||||
chest_3_unlock_time: float,
|
||||
chest_0_unlock_tokens: int,
|
||||
chest_1_unlock_tokens: int,
|
||||
chest_2_unlock_tokens: int,
|
||||
chest_3_unlock_tokens: int,
|
||||
chest_0_ad_allow_time: float,
|
||||
chest_1_ad_allow_time: float,
|
||||
chest_2_ad_allow_time: float,
|
||||
chest_3_ad_allow_time: float,
|
||||
) -> None:
|
||||
"""Pass values to the native layer for use in the root UI or elsewhere."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def set_stress_testing(
|
||||
testing: bool, player_count: int, attract_mode: bool
|
||||
) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
|
|
@ -56,4 +177,5 @@ def value_test(
|
|||
arg: str, change: float | None = None, absolute: float | None = None
|
||||
) -> float:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return float()
|
||||
|
|
|
|||
92
dist/dummymodules/_baplus.py
vendored
92
dist/dummymodules/_baplus.py
vendored
|
|
@ -27,6 +27,8 @@ NOTE: This file was autogenerated by batools.dummymodule; do not edit by hand.
|
|||
# pylint: disable=redefined-outer-name
|
||||
# pylint: disable=invalid-name
|
||||
# pylint: disable=no-value-for-parameter
|
||||
# pylint: disable=unused-import
|
||||
# pylint: disable=too-many-positional-arguments
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
@ -49,11 +51,13 @@ def add_v1_account_transaction(
|
|||
transaction: dict, callback: Callable | None = None
|
||||
) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def can_show_ad() -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
|
|
@ -63,74 +67,88 @@ def game_service_has_leaderboard(game: str, config: str) -> bool:
|
|||
Given a game and config string, returns whether there is a leaderboard
|
||||
for it on the game service.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def get_classic_news_show() -> str:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def get_master_server_address(source: int = -1, version: int = 1) -> str:
|
||||
"""(internal)
|
||||
|
||||
Return the address of the master server.
|
||||
"""
|
||||
return str()
|
||||
|
||||
|
||||
def get_news_show() -> str:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def get_price(item: str) -> str | None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return ''
|
||||
|
||||
|
||||
def get_purchased(item: str) -> bool:
|
||||
"""(internal)"""
|
||||
return bool()
|
||||
|
||||
|
||||
def get_purchases_state() -> int:
|
||||
"""(internal)"""
|
||||
return int()
|
||||
|
||||
|
||||
def get_v1_account_display_string(full: bool = True) -> str:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def get_v1_account_misc_read_val(name: str, default_value: Any) -> Any:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return _uninferrable()
|
||||
|
||||
|
||||
def get_v1_account_misc_read_val_2(name: str, default_value: Any) -> Any:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return _uninferrable()
|
||||
|
||||
|
||||
def get_v1_account_misc_val(name: str, default_value: Any) -> Any:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return _uninferrable()
|
||||
|
||||
|
||||
def get_v1_account_name() -> str:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def get_v1_account_product_purchased(item: str) -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def get_v1_account_product_purchases_state() -> int:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return int()
|
||||
|
||||
|
||||
def get_v1_account_public_login_id() -> str | None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return ''
|
||||
|
||||
|
||||
def get_v1_account_state() -> str:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def get_v1_account_state_num() -> int:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return int()
|
||||
|
||||
|
||||
|
|
@ -139,84 +157,97 @@ def get_v1_account_ticket_count() -> int:
|
|||
|
||||
Returns the number of tickets for the current account.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return int()
|
||||
|
||||
|
||||
def get_v1_account_type() -> str:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def get_v2_fleet() -> str:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def has_video_ads() -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def have_incentivized_ad() -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def have_outstanding_v1_account_transactions() -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def in_game_purchase(item: str, price: int) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def is_blessed() -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def mark_config_dirty() -> None:
|
||||
"""(internal)
|
||||
|
||||
Category: General Utility Functions
|
||||
"""
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def on_app_loading() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def power_ranking_query(callback: Callable, season: Any = None) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def purchase(item: str) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def report_achievement(achievement: str, pass_to_account: bool = True) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def reset_achievements() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def restore_purchases() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def run_v1_account_transactions() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
|
|
@ -224,6 +255,7 @@ def show_ad(
|
|||
purpose: str, on_completion_call: Callable[[], None] | None = None
|
||||
) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
|
|
@ -231,6 +263,7 @@ def show_ad_2(
|
|||
purpose: str, on_completion_call: Callable[[bool], None] | None = None
|
||||
) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
|
|
@ -240,22 +273,19 @@ def show_game_service_ui(
|
|||
game_version: str | None = None,
|
||||
) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def sign_in_v1(account_type: str) -> None:
|
||||
"""(internal)
|
||||
|
||||
Category: General Utility Functions
|
||||
"""
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def sign_out_v1(v2_embedded: bool = False) -> None:
|
||||
"""(internal)
|
||||
|
||||
Category: General Utility Functions
|
||||
"""
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
|
|
@ -278,11 +308,19 @@ def submit_score(
|
|||
to devote my time to improving the game instead of trying to make the
|
||||
score server more mischief-proof.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def supports_purchases() -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def tournament_query(
|
||||
callback: Callable[[dict | None], None], args: dict
|
||||
) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
|
|
|||
982
dist/dummymodules/_bascenev1.py
vendored
982
dist/dummymodules/_bascenev1.py
vendored
File diff suppressed because it is too large
Load diff
4
dist/dummymodules/_batemplatefs.py
vendored
4
dist/dummymodules/_batemplatefs.py
vendored
|
|
@ -27,6 +27,8 @@ NOTE: This file was autogenerated by batools.dummymodule; do not edit by hand.
|
|||
# pylint: disable=redefined-outer-name
|
||||
# pylint: disable=invalid-name
|
||||
# pylint: disable=no-value-for-parameter
|
||||
# pylint: disable=unused-import
|
||||
# pylint: disable=too-many-positional-arguments
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
@ -50,9 +52,11 @@ class Hello:
|
|||
|
||||
def testmethod(self, val: int = 0) -> None:
|
||||
"""Just testing."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def hello_again_world() -> None:
|
||||
"""Another hello world print."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
|
|
|||
183
dist/dummymodules/_bauiv1.py
vendored
183
dist/dummymodules/_bauiv1.py
vendored
|
|
@ -27,6 +27,8 @@ NOTE: This file was autogenerated by batools.dummymodule; do not edit by hand.
|
|||
# pylint: disable=redefined-outer-name
|
||||
# pylint: disable=invalid-name
|
||||
# pylint: disable=no-value-for-parameter
|
||||
# pylint: disable=unused-import
|
||||
# pylint: disable=too-many-positional-arguments
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
@ -48,25 +50,27 @@ def _uninferrable() -> Any:
|
|||
|
||||
|
||||
class Mesh:
|
||||
"""Category: **User Interface Classes**"""
|
||||
"""Mesh asset for local user interface purposes."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class Sound:
|
||||
"""Category: **User Interface Classes**"""
|
||||
"""Sound asset for local user interface purposes."""
|
||||
|
||||
def play(self) -> None:
|
||||
def play(self, volume: float = 1.0) -> None:
|
||||
"""Play the sound locally."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
def stop(self) -> None:
|
||||
"""Stop the sound if it is playing."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
class Texture:
|
||||
"""Category: **User Interface Classes**"""
|
||||
"""Texture asset for local user interface purposes."""
|
||||
|
||||
pass
|
||||
|
||||
|
|
@ -74,8 +78,6 @@ class Texture:
|
|||
class Widget:
|
||||
"""Internal type for low level UI elements; buttons, windows, etc.
|
||||
|
||||
Category: **User Interface Classes**
|
||||
|
||||
This class represents a weak reference to a widget object
|
||||
in the internal C++ layer. Currently, functions such as
|
||||
bauiv1.buttonwidget() must be used to instantiate or edit these.
|
||||
|
|
@ -94,16 +96,19 @@ class Widget:
|
|||
|
||||
def activate(self) -> None:
|
||||
"""Activates a widget; the same as if it had been clicked."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
def add_delete_callback(self, call: Callable) -> None:
|
||||
"""Add a call to be run immediately after this widget is destroyed."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
def delete(self, ignore_missing: bool = True) -> None:
|
||||
"""Delete the Widget. Ignores already-deleted Widgets if ignore_missing
|
||||
is True; otherwise an Exception is thrown.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
def exists(self) -> bool:
|
||||
|
|
@ -114,10 +119,12 @@ class Widget:
|
|||
functionality, so a statement such as "if mywidget" will do
|
||||
the right thing both for Widget objects and values of None.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
def get_children(self) -> list[bauiv1.Widget]:
|
||||
"""Returns any child Widgets of this Widget."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1
|
||||
|
||||
return [bauiv1.Widget()]
|
||||
|
|
@ -127,10 +134,12 @@ class Widget:
|
|||
of the screen. This can be useful for placing pop-up windows and other
|
||||
special cases.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return (0.0, 0.0)
|
||||
|
||||
def get_selected_child(self) -> bauiv1.Widget | None:
|
||||
"""Returns the selected child Widget or None if nothing is selected."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
|
@ -140,17 +149,15 @@ class Widget:
|
|||
is different from the Python bauiv1.Widget type, which is the same for
|
||||
all widgets.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return str()
|
||||
|
||||
|
||||
def back_press() -> None:
|
||||
"""(internal)"""
|
||||
return None
|
||||
|
||||
|
||||
def buttonwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
id: str | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
position: Sequence[float] | None = None,
|
||||
on_activate_call: Callable | None = None,
|
||||
|
|
@ -189,18 +196,18 @@ def buttonwidget(
|
|||
) -> bauiv1.Widget:
|
||||
"""Create or edit a button widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def checkboxwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
|
|
@ -219,18 +226,18 @@ def checkboxwidget(
|
|||
) -> bauiv1.Widget:
|
||||
"""Create or edit a check-box widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def columnwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
|
|
@ -247,24 +254,24 @@ def columnwidget(
|
|||
border: float | None = None,
|
||||
margin: float | None = None,
|
||||
claims_left_right: bool | None = None,
|
||||
claims_tab: bool | None = None,
|
||||
) -> bauiv1.Widget:
|
||||
"""Create or edit a column widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def containerwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
id: str | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
position: Sequence[float] | None = None,
|
||||
background: bool | None = None,
|
||||
|
|
@ -275,7 +282,6 @@ def containerwidget(
|
|||
root_selectable: bool | None = None,
|
||||
on_activate_call: Callable[[], None] | None = None,
|
||||
claims_left_right: bool | None = None,
|
||||
claims_tab: bool | None = None,
|
||||
selection_loops: bool | None = None,
|
||||
selection_loops_to_parent: bool | None = None,
|
||||
scale: float | None = None,
|
||||
|
|
@ -290,19 +296,33 @@ def containerwidget(
|
|||
always_highlight: bool | None = None,
|
||||
selectable: bool | None = None,
|
||||
scale_origin_stack_offset: Sequence[float] | None = None,
|
||||
toolbar_visibility: str | None = None,
|
||||
toolbar_visibility: (
|
||||
Literal[
|
||||
'menu_minimal',
|
||||
'menu_minimal_no_back',
|
||||
'menu_full',
|
||||
'menu_full_no_back',
|
||||
'menu_store',
|
||||
'menu_store_no_back',
|
||||
'menu_in_game',
|
||||
'menu_tokens',
|
||||
'get_tokens',
|
||||
'no_menu_minimal',
|
||||
'inherit',
|
||||
]
|
||||
| None
|
||||
) = None,
|
||||
on_select_call: Callable[[], None] | None = None,
|
||||
claim_outside_clicks: bool | None = None,
|
||||
claims_up_down: bool | None = None,
|
||||
) -> bauiv1.Widget:
|
||||
"""Create or edit a container widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
|
@ -313,13 +333,36 @@ def get_qrcode_texture(url: str) -> bauiv1.Texture:
|
|||
|
||||
The provided url must be 64 bytes or less.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Texture()
|
||||
|
||||
|
||||
def get_special_widget(name: str) -> bauiv1.Widget:
|
||||
def get_special_widget(
|
||||
name: Literal[
|
||||
'squad_button',
|
||||
'back_button',
|
||||
'account_button',
|
||||
'achievements_button',
|
||||
'settings_button',
|
||||
'inbox_button',
|
||||
'store_button',
|
||||
'get_tokens_button',
|
||||
'inventory_button',
|
||||
'tickets_meter',
|
||||
'tokens_meter',
|
||||
'trophy_meter',
|
||||
'level_meter',
|
||||
'overlay_stack',
|
||||
'chest_0_button',
|
||||
'chest_1_button',
|
||||
'chest_2_button',
|
||||
'chest_3_button',
|
||||
],
|
||||
) -> bauiv1.Widget:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
|
@ -327,6 +370,7 @@ def get_special_widget(name: str) -> bauiv1.Widget:
|
|||
|
||||
def getmesh(name: str) -> bauiv1.Mesh:
|
||||
"""Load a mesh for use solely in the local user interface."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Mesh()
|
||||
|
|
@ -334,6 +378,7 @@ def getmesh(name: str) -> bauiv1.Mesh:
|
|||
|
||||
def getsound(name: str) -> bauiv1.Sound:
|
||||
"""Load a sound for use in the ui."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Sound()
|
||||
|
|
@ -341,12 +386,14 @@ def getsound(name: str) -> bauiv1.Sound:
|
|||
|
||||
def gettexture(name: str) -> bauiv1.Texture:
|
||||
"""Load a texture for use in the ui."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Texture()
|
||||
|
||||
|
||||
def hscrollwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
|
|
@ -362,22 +409,21 @@ def hscrollwidget(
|
|||
simple_culling_h: float | None = None,
|
||||
claims_left_right: bool | None = None,
|
||||
claims_up_down: bool | None = None,
|
||||
claims_tab: bool | None = None,
|
||||
) -> bauiv1.Widget:
|
||||
"""Create or edit a horizontal scroll widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def imagewidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
|
|
@ -396,15 +442,15 @@ def imagewidget(
|
|||
tilt_scale: float | None = None,
|
||||
mask_texture: bauiv1.Texture | None = None,
|
||||
radial_amount: float | None = None,
|
||||
draw_controller_mult: float | None = None,
|
||||
) -> bauiv1.Widget:
|
||||
"""Create or edit an image widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
|
@ -412,12 +458,35 @@ def imagewidget(
|
|||
|
||||
def is_available() -> bool:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return bool()
|
||||
|
||||
|
||||
def is_party_icon_visible() -> bool:
|
||||
def on_ui_scale_change() -> None:
|
||||
"""(internal)"""
|
||||
return bool()
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def root_ui_back_press() -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def root_ui_pause_updates() -> None:
|
||||
"""Temporarily pause updates to the root ui for animation purposes.
|
||||
Make sure that each call to this is matched by a call to
|
||||
root_ui_resume_updates().
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def root_ui_resume_updates() -> None:
|
||||
"""Resume paused updates to the root ui for animation purposes."""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def rowwidget(
|
||||
|
|
@ -429,23 +498,22 @@ def rowwidget(
|
|||
selected_child: bauiv1.Widget | None = None,
|
||||
visible_child: bauiv1.Widget | None = None,
|
||||
claims_left_right: bool | None = None,
|
||||
claims_tab: bool | None = None,
|
||||
selection_loops_to_parent: bool | None = None,
|
||||
) -> bauiv1.Widget:
|
||||
"""Create or edit a row widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def scrollwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
|
|
@ -455,6 +523,7 @@ def scrollwidget(
|
|||
capture_arrows: bool = False,
|
||||
on_select_call: Callable | None = None,
|
||||
center_small_content: bool | None = None,
|
||||
center_small_content_horizontally: bool | None = None,
|
||||
color: Sequence[float] | None = None,
|
||||
highlight: bool | None = None,
|
||||
border_opacity: float | None = None,
|
||||
|
|
@ -462,33 +531,49 @@ def scrollwidget(
|
|||
selection_loops_to_parent: bool | None = None,
|
||||
claims_left_right: bool | None = None,
|
||||
claims_up_down: bool | None = None,
|
||||
claims_tab: bool | None = None,
|
||||
autoselect: bool | None = None,
|
||||
) -> bauiv1.Widget:
|
||||
"""Create or edit a scroll widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def set_party_icon_always_visible(value: bool) -> None:
|
||||
"""(internal)"""
|
||||
return None
|
||||
|
||||
|
||||
def set_party_window_open(value: bool) -> None:
|
||||
"""(internal)"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
||||
|
||||
def spinnerwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
size: float | None = None,
|
||||
position: Sequence[float] | None = None,
|
||||
style: Literal['bomb', 'simple'] | None = None,
|
||||
visible: bool | None = None,
|
||||
) -> bauiv1.Widget:
|
||||
"""Create or edit a spinner widget.
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def textwidget(
|
||||
*,
|
||||
edit: bauiv1.Widget | None = None,
|
||||
parent: bauiv1.Widget | None = None,
|
||||
size: Sequence[float] | None = None,
|
||||
|
|
@ -532,22 +617,16 @@ def textwidget(
|
|||
) -> bauiv1.Widget:
|
||||
"""Create or edit a text widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Pass a valid existing bauiv1.Widget as 'edit' to modify it; otherwise
|
||||
a new one is created and returned. Arguments that are not set to None
|
||||
are applied to the Widget.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
import bauiv1 # pylint: disable=cyclic-import
|
||||
|
||||
return bauiv1.Widget()
|
||||
|
||||
|
||||
def toolbar_test() -> bool:
|
||||
"""(internal)"""
|
||||
return bool()
|
||||
|
||||
|
||||
def uibounds() -> tuple[float, float, float, float]:
|
||||
"""(internal)
|
||||
|
||||
|
|
@ -556,11 +635,13 @@ def uibounds() -> tuple[float, float, float, float]:
|
|||
bauiv1.ContainerWidget's stack_offset value while guaranteeing that its
|
||||
center remains onscreen.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return (0.0, 0.0, 0.0, 0.0)
|
||||
|
||||
|
||||
def widget(
|
||||
edit: bauiv1.Widget | None = None,
|
||||
*,
|
||||
edit: bauiv1.Widget,
|
||||
up_widget: bauiv1.Widget | None = None,
|
||||
down_widget: bauiv1.Widget | None = None,
|
||||
left_widget: bauiv1.Widget | None = None,
|
||||
|
|
@ -569,12 +650,12 @@ def widget(
|
|||
show_buffer_bottom: float | None = None,
|
||||
show_buffer_left: float | None = None,
|
||||
show_buffer_right: float | None = None,
|
||||
depth_range: tuple[float, float] | None = None,
|
||||
autoselect: bool | None = None,
|
||||
) -> None:
|
||||
"""Edit common attributes of any widget.
|
||||
|
||||
Category: **User Interface Functions**
|
||||
|
||||
Unlike other UI calls, this can only be used to edit, not to create.
|
||||
"""
|
||||
# This is a dummy stub; the actual implementation is native code.
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue