Skip to content

Commit eceec3b

Browse files
committed
Update to Core v0.5
1 parent e04c130 commit eceec3b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "A high performance Python interface for communicating with RLBot
88
dynamic = ["version"]
99
requires-python = ">= 3.11"
1010
dependencies = [
11-
"rlbot_flatbuffers~=0.14.6",
11+
"rlbot_flatbuffers~=0.15.0",
1212
"psutil==7.*",
1313
]
1414
readme = "README.md"

rlbot/managers/rendering.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def draw(
146146
),
147147
):
148148
if not self.is_rendering():
149-
self._logger.warning(
149+
self._logger.error(
150150
"Attempted to draw without a render group."
151151
"Please call `begin_rendering` first, and then `end_rendering` after."
152152
)
@@ -237,7 +237,8 @@ def draw_rect_2d(
237237
width: float,
238238
height: float,
239239
color: flat.Color,
240-
centered: bool = True,
240+
h_align: flat.TextHAlign = flat.TextHAlign.Left,
241+
v_align: flat.TextVAlign = flat.TextVAlign.Top,
241242
):
242243
"""
243244
Draws a rectangle anchored in 2d space.
@@ -251,7 +252,8 @@ def draw_rect_2d(
251252
width,
252253
height,
253254
color,
254-
centered,
255+
h_align,
256+
v_align,
255257
)
256258
)
257259

@@ -261,6 +263,8 @@ def draw_rect_3d(
261263
width: float,
262264
height: float,
263265
color: flat.Color,
266+
h_align: flat.TextHAlign = flat.TextHAlign.Left,
267+
v_align: flat.TextVAlign = flat.TextVAlign.Top,
264268
):
265269
"""
266270
Draws a rectangle anchored in 3d space.
@@ -273,5 +277,7 @@ def draw_rect_3d(
273277
width,
274278
height,
275279
color,
280+
h_align,
281+
v_align,
276282
)
277283
)

rlbot/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.0-beta.38"
1+
__version__ = "2.0.0-beta.39"

0 commit comments

Comments
 (0)