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