Skip to content

Commit

Permalink
Fix drawing Rect2D & GameTimeRemaining (#58)
Browse files Browse the repository at this point in the history
* Fix Rect2D render coords

* Update `Bridge.dll`

* Update `Bridge.dll`
  • Loading branch information
VirxEC authored Nov 29, 2024
1 parent 9368d47 commit 0cc2d64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RLBotCS/ManagerTools/Rendering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private ushort SendRect2D(Rect2DT rect2Dt)
var adjustedX =
!rect2Dt.Centered && rect2Dt.Width < 0 ? rect2Dt.X - rect2Dt.Width : rect2Dt.X;
var adjustedY =
!rect2Dt.Centered && rect2Dt.Height < 0 ? rect2Dt.Y - rect2Dt.Height : rect2Dt.X;
!rect2Dt.Centered && rect2Dt.Height < 0 ? rect2Dt.Y - rect2Dt.Height : rect2Dt.Y;

// Fake a filled rectangle using a string with colored background
var (text, scale) = MakeFakeRectangleString(
Expand Down
Binary file modified RLBotCS/lib/Bridge.dll
Binary file not shown.

0 comments on commit 0cc2d64

Please sign in to comment.