magicNumbers = magicNumbers - 1
This commit is contained in:
parent
2b436082bb
commit
e44bdcb57b
|
@ -6,8 +6,9 @@ local ScoreboardHeight <const> = 55
|
||||||
local Indicator = "> "
|
local Indicator = "> "
|
||||||
local IndicatorWidth <const> = ScoreFont:getTextWidth(Indicator)
|
local IndicatorWidth <const> = ScoreFont:getTextWidth(Indicator)
|
||||||
|
|
||||||
|
local BallStrikeMarginY <const> = 4
|
||||||
local BallStrikeWidth <const> = 60
|
local BallStrikeWidth <const> = 60
|
||||||
local BallStrikeHeight <const> = 20
|
local BallStrikeHeight <const> = (BallStrikeMarginY * 2) + ScoreFont:getHeight()
|
||||||
|
|
||||||
---@param teams any
|
---@param teams any
|
||||||
---@param battingTeam any
|
---@param battingTeam any
|
||||||
|
@ -33,7 +34,7 @@ function drawBallsAndStrikes(x, y, balls, strikes)
|
||||||
local text = tostring(balls) .. " - " .. tostring(strikes)
|
local text = tostring(balls) .. " - " .. tostring(strikes)
|
||||||
local textWidth = ScoreFont:getTextWidth(text)
|
local textWidth = ScoreFont:getTextWidth(text)
|
||||||
local widthDiff = BallStrikeWidth - textWidth
|
local widthDiff = BallStrikeWidth - textWidth
|
||||||
ScoreFont:drawText(text, x + (widthDiff / 2), y + 4)
|
ScoreFont:drawText(text, x + (widthDiff / 2), y + BallStrikeMarginY)
|
||||||
gfx.setImageDrawMode(originalDrawMode)
|
gfx.setImageDrawMode(originalDrawMode)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue