mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 22:43:17 +08:00
Fixing a few UI stuff.
This commit is contained in:
parent
8ab596e2b5
commit
603d5bf6bb
@ -117,7 +117,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',
|
||||||
@ -125,7 +125,7 @@ class ConfigNumberEdit:
|
|||||||
)
|
)
|
||||||
self.valuetext = bui.textwidget(
|
self.valuetext = bui.textwidget(
|
||||||
parent=parent,
|
parent=parent,
|
||||||
position=(246 + xoffset, position[1]),
|
position=(position[0] + 146 + xoffset, position[1]),
|
||||||
size=(60, 28),
|
size=(60, 28),
|
||||||
editable=False,
|
editable=False,
|
||||||
color=(0.3, 1.0, 0.3, 1.0),
|
color=(0.3, 1.0, 0.3, 1.0),
|
||||||
@ -136,7 +136,7 @@ class ConfigNumberEdit:
|
|||||||
)
|
)
|
||||||
self.minusbutton = bui.buttonwidget(
|
self.minusbutton = bui.buttonwidget(
|
||||||
parent=parent,
|
parent=parent,
|
||||||
position=(330 + xoffset, position[1]),
|
position=(position[0] + 230 + xoffset, position[1]),
|
||||||
size=(28, 28),
|
size=(28, 28),
|
||||||
label='-',
|
label='-',
|
||||||
autoselect=True,
|
autoselect=True,
|
||||||
@ -146,7 +146,7 @@ class ConfigNumberEdit:
|
|||||||
)
|
)
|
||||||
self.plusbutton = bui.buttonwidget(
|
self.plusbutton = bui.buttonwidget(
|
||||||
parent=parent,
|
parent=parent,
|
||||||
position=(380 + xoffset, position[1]),
|
position=(position[0] + 280 + xoffset, position[1]),
|
||||||
size=(28, 28),
|
size=(28, 28),
|
||||||
label='+',
|
label='+',
|
||||||
autoselect=True,
|
autoselect=True,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user