feat: add QTE drawing

This commit is contained in:
Kazhnuz 2021-04-25 12:21:17 +02:00
parent 6156837705
commit 2d1ea4c2a0
2 changed files with 9 additions and 0 deletions

View file

@ -144,6 +144,9 @@ function HeroFighter:drawHUD()
local x = (self.id-0.5)*boxSize
local y = self.turnSystem.hud:getPlayerHUDPosition()
self.statusbar:draw(x - HUDSIZE/2, y)
if (self.action ~= nil) then
self.action:draw()
end
end
return HeroFighter

View file

@ -53,4 +53,10 @@ function ActionParent:finishAction()
self.fighter:finishAction()
end
function ActionParent:draw()
if (self.choregraphy ~= nil) then
self.choregraphy:draw()
end
end
return ActionParent