mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-25 00:13:27 +08:00
Latest public/internal sync.
This commit is contained in:
parent
6047d95e92
commit
de85edbce6
@ -109,9 +109,11 @@ class ConfigNumberEdit:
|
||||
self._value = bui.app.config.resolve(configkey)
|
||||
except ValueError:
|
||||
self._value = bui.app.config.get(configkey, fallback_value)
|
||||
self._value = (self._minval if self._minval > self._value else
|
||||
self._maxval if self._maxval < self._value else
|
||||
self._value)
|
||||
self._value = (
|
||||
self._minval
|
||||
if self._minval > self._value
|
||||
else self._maxval if self._maxval < self._value else self._value
|
||||
)
|
||||
self._as_percent = as_percent
|
||||
self._f = f
|
||||
|
||||
@ -120,7 +122,7 @@ class ConfigNumberEdit:
|
||||
position=position,
|
||||
size=(100, 30),
|
||||
text=displayname,
|
||||
#maxwidth=160 + xoffset,
|
||||
# maxwidth=160 + xoffset,
|
||||
color=(0.8, 0.8, 0.8, 1.0),
|
||||
h_align='left',
|
||||
v_align='center',
|
||||
|
||||
@ -258,7 +258,7 @@ class ControlsSettingsWindow(bui.Window):
|
||||
v -= spacing
|
||||
bui.widget(
|
||||
edit=self._keyboard_2_button,
|
||||
left_widget=self._keyboard_2_button
|
||||
left_widget=self._keyboard_2_button,
|
||||
)
|
||||
if show_space_2:
|
||||
v -= space_height
|
||||
@ -323,7 +323,7 @@ class ControlsSettingsWindow(bui.Window):
|
||||
bui.widget(
|
||||
edit=xinput_checkbox,
|
||||
left_widget=xinput_checkbox,
|
||||
right_widget=xinput_checkbox
|
||||
right_widget=xinput_checkbox,
|
||||
)
|
||||
v -= spacing
|
||||
|
||||
|
||||
@ -349,9 +349,12 @@ class PluginWindow(bui.Window):
|
||||
text=bui.Lstr(value=classpath),
|
||||
autoselect=True,
|
||||
value=enabled,
|
||||
maxwidth=self._scroll_width - (
|
||||
200 if plugin is not None and plugin.has_settings_ui() else
|
||||
80),
|
||||
maxwidth=self._scroll_width
|
||||
- (
|
||||
200
|
||||
if plugin is not None and plugin.has_settings_ui()
|
||||
else 80
|
||||
),
|
||||
position=(10, item_y),
|
||||
size=(self._scroll_width - 40, 50),
|
||||
on_value_change_call=bui.Call(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user