Properly display balls and strikes #3

Merged
sage merged 2 commits from proper-balls-and-strikes-display into main 2025-02-07 20:11:54 -05:00
Owner

But only when the count isn't 0 - 0

But only when the count isn't 0 - 0
sage added 1 commit 2025-02-07 10:35:20 -05:00
2b436082bb Properly display balls and strikes
But only when the count isn't 0 - 0
Author
Owner

image

![image](/attachments/94ca0288-9982-43d2-b7f5-d37a390788be)
6.7 KiB
NikB0t was assigned by sage 2025-02-07 10:37:30 -05:00
sage requested review from NikB0t 2025-02-07 10:37:39 -05:00
NikB0t was unassigned by sage 2025-02-07 10:37:56 -05:00
NikB0t reviewed 2025-02-07 13:24:59 -05:00
@ -24,0 +33,4 @@
local text = tostring(balls) .. " - " .. tostring(strikes)
local textWidth = ScoreFont:getTextWidth(text)
local widthDiff = BallStrikeWidth - textWidth
ScoreFont:drawText(text, x + (widthDiff / 2), y + 4)
Collaborator

Where does the magic 4 come from 🤔

Where does the magic 4 come from 🤔
Author
Owner

You're honestly so real for that

You're honestly so real for that
sage added 1 commit 2025-02-07 14:11:59 -05:00
NikB0t approved these changes 2025-02-07 14:57:48 -05:00
sage merged commit 969de111fe into main 2025-02-07 20:11:54 -05:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sage/BatterUp#3
No description provided.