Skip to content

Commit

Permalink
Latest public/internal sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
efroemling committed Sep 9, 2024
1 parent 95f73af commit 07fccaf
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 42 deletions.
56 changes: 28 additions & 28 deletions .efrocachemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/assets/ba_data/python/bascenev1lib/mainmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,8 @@ def _make_logo(
'tilt_translate': 0.21,
'absolute_scale': True,
'scale': (
(2000.0,2000.0) if custom_texture is None
else None
)
(2000.0, 2000.0) if custom_texture is None else None
),
},
)
)
Expand All @@ -608,6 +607,7 @@ def _make_logo(
# (unless we're in VR mode in which case its best to
# leave things still).
assert logo.node

def jitter() -> None:
if not bs.app.env.vr:
cmb = bs.newnode('combine', owner=logo.node, attrs={'size': 2})
Expand All @@ -632,18 +632,18 @@ def jitter() -> None:
bs.animate(cmb, 'input1', keys, loop=True)

if custom_texture is None:

def rotate_logo() -> None:
logo_scale = logo.node.scale
assert not isinstance(logo_scale, float)
logo.node.rotate = logo.node.rotate + 4
logo.node.scale = (
logo_scale[0] - 20, logo_scale[1] - 20
)
logo.node.scale = (logo_scale[0] - 20, logo_scale[1] - 20)
if logo.node.rotate >= 356:
self._logo_rotate_timer = None
jitter()

self._logo_rotate_timer = bs.Timer(
0.001, functools.partial(rotate_logo), repeat = True
0.001, functools.partial(rotate_logo), repeat=True
)
else:
jitter()
Expand Down
11 changes: 7 additions & 4 deletions src/assets/ba_data/python/bauiv1lib/settings/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ def __init__(

bui.textwidget(
parent=self._root_widget,
position=(0, height + yoffs - (
75 if uiscale is bui.UIScale.SMALL else 50)
position=(
0,
height + yoffs - (75 if uiscale is bui.UIScale.SMALL else 50),
),
size=(width, 25),
text=bui.Lstr(resource=f'{self._r}.titleText'),
Expand Down Expand Up @@ -298,8 +299,10 @@ def do_toggle(value: bool) -> None:

xinput_checkbox = bui.checkboxwidget(
parent=self._root_widget,
position=(width * (
0.35 if uiscale is bui.UIScale.SMALL else 0.25), v + 3),
position=(
width * (0.35 if uiscale is bui.UIScale.SMALL else 0.25),
v + 3,
),
size=(120, 30),
value=(not bui.get_low_level_config_value('enablexinput', 1)),
maxwidth=200,
Expand Down
4 changes: 1 addition & 3 deletions src/ballistica/ui_v1/ui_v1.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ class UIV1FeatureSet : public FeatureSetNativeComponent,
auto always_use_internal_on_screen_keyboard() const {
return always_use_internal_on_screen_keyboard_;
}
auto set_party_window_open(bool value) {
party_window_open_ = value;
}
auto set_party_window_open(bool value) { party_window_open_ = value; }

auto HasQuitConfirmDialog() -> bool override;
void ConfirmQuit(QuitType quit_type) override;
Expand Down

0 comments on commit 07fccaf

Please sign in to comment.