mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-03 14:03:18 +08:00
public/internal sync
This commit is contained in:
parent
30d18fbfa6
commit
68acd9eb85
@ -9,6 +9,7 @@ import bauiv1 as bui
|
|||||||
from bauiv1lib.popup import PopupMenu
|
from bauiv1lib.popup import PopupMenu
|
||||||
from bauiv1lib.confirm import ConfirmWindow
|
from bauiv1lib.confirm import ConfirmWindow
|
||||||
|
|
||||||
|
|
||||||
class ModdingToolsWindow(bui.Window):
|
class ModdingToolsWindow(bui.Window):
|
||||||
"""Window for accessing modding tools."""
|
"""Window for accessing modding tools."""
|
||||||
|
|
||||||
@ -37,9 +38,7 @@ class ModdingToolsWindow(bui.Window):
|
|||||||
self._height = (
|
self._height = (
|
||||||
390.0
|
390.0
|
||||||
if uiscale is bui.UIScale.SMALL
|
if uiscale is bui.UIScale.SMALL
|
||||||
else 450.0
|
else 450.0 if uiscale is bui.UIScale.MEDIUM else 520.0
|
||||||
if uiscale is bui.UIScale.MEDIUM
|
|
||||||
else 520.0
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self._spacing = 32
|
self._spacing = 32
|
||||||
@ -59,13 +58,11 @@ class ModdingToolsWindow(bui.Window):
|
|||||||
scale=(
|
scale=(
|
||||||
2.06
|
2.06
|
||||||
if uiscale is bui.UIScale.SMALL
|
if uiscale is bui.UIScale.SMALL
|
||||||
else 1.4
|
else 1.4 if uiscale is bui.UIScale.MEDIUM else 1.0
|
||||||
if uiscale is bui.UIScale.MEDIUM
|
),
|
||||||
else 1.0
|
stack_offset=(
|
||||||
|
(0, -25) if uiscale is bui.UIScale.SMALL else (0, 0)
|
||||||
),
|
),
|
||||||
stack_offset=(0, -25)
|
|
||||||
if uiscale is bui.UIScale.SMALL
|
|
||||||
else (0, 0),
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -167,7 +164,12 @@ class ModdingToolsWindow(bui.Window):
|
|||||||
parent=self._subcontainer,
|
parent=self._subcontainer,
|
||||||
position=(230, v - 20),
|
position=(230, v - 20),
|
||||||
button_size=(200.0, 60.0),
|
button_size=(200.0, 60.0),
|
||||||
choices=['auto','small', 'medium', 'large',],
|
choices=[
|
||||||
|
'auto',
|
||||||
|
'small',
|
||||||
|
'medium',
|
||||||
|
'large',
|
||||||
|
],
|
||||||
choices_display=[
|
choices_display=[
|
||||||
bui.Lstr(resource='autoText'),
|
bui.Lstr(resource='autoText'),
|
||||||
bui.Lstr(resource='smallText'),
|
bui.Lstr(resource='smallText'),
|
||||||
@ -184,9 +186,7 @@ class ModdingToolsWindow(bui.Window):
|
|||||||
cfg.apply_and_commit()
|
cfg.apply_and_commit()
|
||||||
if bui.app.ui_v1.uiscale.name != val.upper():
|
if bui.app.ui_v1.uiscale.name != val.upper():
|
||||||
bui.screenmessage(
|
bui.screenmessage(
|
||||||
bui.Lstr(
|
bui.Lstr(resource='settingsWindowAdvanced.mustRestartText'),
|
||||||
resource='settingsWindowAdvanced.mustRestartText'
|
|
||||||
),
|
|
||||||
color=(1.0, 0.5, 0.0),
|
color=(1.0, 0.5, 0.0),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user