Skip to content

Commit

Permalink
Merge pull request #2449 from 8bitgentleman/removebadge
Browse files Browse the repository at this point in the history
remove quest badge
  • Loading branch information
niamu committed Jun 13, 2015
2 parents 89366f0 + 4cd676e commit c251799
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,34 +63,6 @@ function HUD:update(dt)
end
end

-- Draw the quest badge in HUD
-- @param player the player
-- @return nil
function HUD:questBadge( player )
local quest = player.quest
local questParent = player.questParent

local width = (love.graphics.getFont():getWidth( quest ) * 0.5) + 4
local height = 24
local margin = 20

local x = camera.x + 125
local y = camera.y + 23

-- Draw rectangle
love.graphics.setColor( 0, 0, 0, 180 )
love.graphics.rectangle('fill', x, y, width, height)

-- Draw text
love.graphics.setColor( 255, 255, 255, 255 )
love.graphics.print(quest, (x + 2), (y + 2), 0, 0.5, 0.5)
love.graphics.push()
--love.graphics.printf("for " .. questParent, (x + 2), (y + 15), (width + 8), "left", 0, 0.5, 0.5)
love.graphics.pop()

love.graphics.setColor( 255, 255, 255, 255 )
end

function HUD:draw( player )
if not window.dressing_visible then
return
Expand Down Expand Up @@ -136,10 +108,6 @@ function HUD:draw( player )
end
end

if player.quest ~= nil then
self:questBadge( player )
end

love.graphics.setColor( 255, 255, 255, 255 )

if self.saving then
Expand Down

0 comments on commit c251799

Please sign in to comment.