This commit is contained in:
shenjack-5600u 2024-07-27 03:31:54 +08:00
parent 7b1b9202c6
commit 114f3c6e6a
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F

View File

@ -131,8 +131,8 @@ class 拐角(ShapeBase):
self._num_verts,
self._draw_mode,
groups,
self._batch, # pyright: ignore reportArgumentType
self._group, # pyright: ignore reportArgumentType
self._batch, # pyright: ignore reportArgumentType
self._group, # pyright: ignore reportArgumentType
position=("f", self._get_vertices()),
colors=("Bn", self._rgba * self._num_verts),
translation=("f", (self._x, self._y) * self._num_verts),
@ -146,6 +146,34 @@ class 拐角(ShapeBase):
def thick2(self) -> float:
return self.thick2
@property
def width(self) -> float:
return self._width
@property
def height(self) -> float:
return self.height
@thick1.setter
def thick1(self, value: float):
self._thick1 = value
self._update_vertices()
@thick2.setter
def thick2(self, value: float):
self._thick2 = value
self._update_vertices()
@width.setter
def width(self, value: float):
self._width = value
self._update_vertices()
@height.setter
def height(self, value: float):
self._height = value
self._update_vertices()
class BaseButtonTheme:
"""