mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-27 09:23:12 +08:00
various tidying
This commit is contained in:
parent
b13e6eee42
commit
4235d30cd2
@ -5,6 +5,12 @@
|
||||
- Added an 'Add to Favorites' entry to the party menu (Thanks vishal332008!)
|
||||
- Now displays 'No Parties Added' in favorites tab if no favorites are present (Thanks vishal332008!)
|
||||
- Now shows character icons in the profiles list window (Thanks vishal332008!)
|
||||
- Added a Random button for names in the Player Profiles window (Thanks vishal332008!)
|
||||
- Fixed a bug where no server is selected by default in the favorites tab (Thanks vishal332008!)
|
||||
- Fixed a bug where no replay is selected by default in the watch tab (Thanks vishal332008!)
|
||||
- Fixed a bug where no profile is selected by default in the profile tab (Thanks vishal332008!)
|
||||
- Fixed a number of UI screens so that ugly window edges are no longer visible
|
||||
in corners on modern ultra wide phone displays.
|
||||
|
||||
### 1.7.31 (build 21727, api 8, 2023-12-17)
|
||||
- Added `bascenev1.get_connection_to_host_info_2()` which is an improved
|
||||
|
||||
@ -69,8 +69,8 @@ class AccountSettingsWindow(bui.Window):
|
||||
assert app.classic is not None
|
||||
uiscale = app.ui_v1.uiscale
|
||||
|
||||
self._width = 760 if uiscale is bui.UIScale.SMALL else 660
|
||||
x_offs = 50 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 860 if uiscale is bui.UIScale.SMALL else 660
|
||||
x_offs = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
390
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -85,8 +85,8 @@ class CoopBrowserWindow(bui.Window):
|
||||
|
||||
assert bui.app.classic is not None
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 1320 if uiscale is bui.UIScale.SMALL else 1120
|
||||
self._x_inset = x_inset = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 1520 if uiscale is bui.UIScale.SMALL else 1120
|
||||
self._x_inset = x_inset = 200 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
657
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -94,8 +94,8 @@ class GatherWindow(bui.Window):
|
||||
bui.app.ui_v1.set_main_menu_location('Gather')
|
||||
bui.set_party_icon_always_visible(True)
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 1240 if uiscale is bui.UIScale.SMALL else 1040
|
||||
x_offs = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 1440 if uiscale is bui.UIScale.SMALL else 1040
|
||||
x_offs = 200 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
582
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -36,8 +36,8 @@ class HelpWindow(bui.Window):
|
||||
self._main_menu = main_menu
|
||||
assert bui.app.classic is not None
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
width = 950 if uiscale is bui.UIScale.SMALL else 750
|
||||
x_offs = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
width = 1050 if uiscale is bui.UIScale.SMALL else 750
|
||||
x_offs = 150 if uiscale is bui.UIScale.SMALL else 0
|
||||
height = (
|
||||
460
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -32,8 +32,8 @@ class PlayWindow(bui.Window):
|
||||
self._is_main_menu = not bui.app.ui_v1.selecting_private_party_playlist
|
||||
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
width = 1000 if uiscale is bui.UIScale.SMALL else 800
|
||||
x_offs = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
width = 1100 if uiscale is bui.UIScale.SMALL else 800
|
||||
x_offs = 150 if uiscale is bui.UIScale.SMALL else 0
|
||||
height = 550
|
||||
button_width = 400
|
||||
|
||||
|
||||
@ -62,8 +62,8 @@ class PlaylistBrowserWindow(bui.Window):
|
||||
)
|
||||
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 900.0 if uiscale is bui.UIScale.SMALL else 800.0
|
||||
x_inset = 50 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 1100.0 if uiscale is bui.UIScale.SMALL else 800.0
|
||||
x_inset = 150 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
480
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -47,8 +47,8 @@ class PlaylistCustomizeBrowserWindow(bui.Window):
|
||||
self._r = 'gameListWindow'
|
||||
assert bui.app.classic is not None
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 750.0 if uiscale is bui.UIScale.SMALL else 650.0
|
||||
x_inset = 50.0 if uiscale is bui.UIScale.SMALL else 0.0
|
||||
self._width = 850.0 if uiscale is bui.UIScale.SMALL else 650.0
|
||||
x_inset = 100.0 if uiscale is bui.UIScale.SMALL else 0.0
|
||||
self._height = (
|
||||
380.0
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -31,8 +31,8 @@ class PlaylistEditWindow(bui.Window):
|
||||
|
||||
assert bui.app.classic is not None
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 770 if uiscale is bui.UIScale.SMALL else 670
|
||||
x_inset = 50 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 870 if uiscale is bui.UIScale.SMALL else 670
|
||||
x_inset = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
400
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -103,8 +103,8 @@ class PlaylistEditGameWindow(bui.Window):
|
||||
self._choice_selections: dict[str, int] = {}
|
||||
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
width = 720 if uiscale is bui.UIScale.SMALL else 620
|
||||
x_inset = 50 if uiscale is bui.UIScale.SMALL else 0
|
||||
width = 820 if uiscale is bui.UIScale.SMALL else 620
|
||||
x_inset = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
height = (
|
||||
365
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -44,8 +44,8 @@ class PlaylistMapSelectWindow(bui.Window):
|
||||
|
||||
assert bui.app.classic is not None
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
width = 715 if uiscale is bui.UIScale.SMALL else 615
|
||||
x_inset = 50 if uiscale is bui.UIScale.SMALL else 0
|
||||
width = 815 if uiscale is bui.UIScale.SMALL else 615
|
||||
x_inset = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
height = (
|
||||
400
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -33,8 +33,8 @@ class ProfileBrowserWindow(bui.Window):
|
||||
back_label = bui.Lstr(resource='doneText')
|
||||
assert bui.app.classic is not None
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 700.0 if uiscale is bui.UIScale.SMALL else 600.0
|
||||
x_inset = 50.0 if uiscale is bui.UIScale.SMALL else 0.0
|
||||
self._width = 800.0 if uiscale is bui.UIScale.SMALL else 600.0
|
||||
x_inset = 100.0 if uiscale is bui.UIScale.SMALL else 0.0
|
||||
self._height = (
|
||||
360.0
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -60,8 +60,8 @@ class EditProfileWindow(bui.Window):
|
||||
self._highlight,
|
||||
) = bui.app.classic.get_player_profile_colors(existing_profile)
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = width = 780.0 if uiscale is bui.UIScale.SMALL else 680.0
|
||||
self._x_inset = x_inset = 50.0 if uiscale is bui.UIScale.SMALL else 0.0
|
||||
self._width = width = 880.0 if uiscale is bui.UIScale.SMALL else 680.0
|
||||
self._x_inset = x_inset = 100.0 if uiscale is bui.UIScale.SMALL else 0.0
|
||||
self._height = height = (
|
||||
350.0
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -47,8 +47,8 @@ class AdvancedSettingsWindow(bui.Window):
|
||||
scale_origin = None
|
||||
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 870.0 if uiscale is bui.UIScale.SMALL else 670.0
|
||||
x_inset = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 970.0 if uiscale is bui.UIScale.SMALL else 670.0
|
||||
x_inset = 150 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
390.0
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -40,8 +40,8 @@ class AllSettingsWindow(bui.Window):
|
||||
scale_origin = None
|
||||
assert bui.app.classic is not None
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
width = 900 if uiscale is bui.UIScale.SMALL else 580
|
||||
x_inset = 75 if uiscale is bui.UIScale.SMALL else 0
|
||||
width = 1000 if uiscale is bui.UIScale.SMALL else 580
|
||||
x_inset = 125 if uiscale is bui.UIScale.SMALL else 0
|
||||
height = 435
|
||||
self._r = 'settingsWindow'
|
||||
top_extra = 20 if uiscale is bui.UIScale.SMALL else 0
|
||||
|
||||
@ -76,8 +76,8 @@ class StoreBrowserWindow(bui.Window):
|
||||
self._on_close_call = on_close_call
|
||||
self._show_tab = show_tab
|
||||
self._modal = modal
|
||||
self._width = 1240 if uiscale is bui.UIScale.SMALL else 1040
|
||||
self._x_inset = x_inset = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 1440 if uiscale is bui.UIScale.SMALL else 1040
|
||||
self._x_inset = x_inset = 200 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
578
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
@ -55,8 +55,8 @@ class WatchWindow(bui.Window):
|
||||
self._my_replay_rename_text: bui.Widget | None = None
|
||||
self._r = 'watchWindow'
|
||||
uiscale = bui.app.ui_v1.uiscale
|
||||
self._width = 1240 if uiscale is bui.UIScale.SMALL else 1040
|
||||
x_inset = 100 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._width = 1440 if uiscale is bui.UIScale.SMALL else 1040
|
||||
x_inset = 200 if uiscale is bui.UIScale.SMALL else 0
|
||||
self._height = (
|
||||
578
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user