Compare commits
4 Commits
feature-fo
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 284f2ac204 | |||
| 970047bded | |||
| 47dea647a0 | |||
| af00e8abd4 |
@ -17,7 +17,7 @@ local camera = {
|
|||||||
velocity = Vec3 {},
|
velocity = Vec3 {},
|
||||||
acceleration = 0.2,
|
acceleration = 0.2,
|
||||||
speed = 5,
|
speed = 5,
|
||||||
pixelsPerMeter = 24,
|
pixelsPerMeter = 32,
|
||||||
}
|
}
|
||||||
|
|
||||||
function camera:getDefaultScale()
|
function camera:getDefaultScale()
|
||||||
|
|||||||
@ -57,10 +57,10 @@ function barElement:draw()
|
|||||||
love.graphics.setColor(1, 1, 1)
|
love.graphics.setColor(1, 1, 1)
|
||||||
--- текст поверх
|
--- текст поверх
|
||||||
if self.drawText then
|
if self.drawText then
|
||||||
local font = Tree.fonts:getDefaultTheme():getVariant("small")
|
local font = Tree.fonts:getDefaultTheme():getVariant("medium")
|
||||||
love.graphics.setFont(font)
|
local t = love.graphics.newText(font, tostring(self.value) .. "/" .. tostring(self.maxValue))
|
||||||
love.graphics.printf(tostring(self.value) .. "/" .. tostring(self.maxValue), self.bounds.x,
|
love.graphics.draw(t, math.floor(self.bounds.x + self.bounds.width / 2 - t:getWidth() / 2),
|
||||||
self.bounds.y, self.bounds.width, "center")
|
math.floor(self.bounds.y + self.bounds.height / 2 - t:getHeight() / 2))
|
||||||
end
|
end
|
||||||
|
|
||||||
self:drawBorder("inner")
|
self:drawBorder("inner")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user