Skip to content
Snippets Groups Projects
Commit 8ac62dbe authored by dg's avatar dg
Browse files

Worn items in the hotkeys toolbar will be outlined as yellow

git-svn-id: http://svn.net-core.org/repos/t-engine4@6734 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6768dc40
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,9 @@ function _M:display()
else frame = "disabled" end
end
end
if o and o.wielded then
frame = "sustain"
end
end
self.font:setStyle("bold")
......@@ -249,7 +252,7 @@ function _M:toScreen()
item.e:toScreen(self.tiles, self.display_x + item.x + self.frames.fx, self.display_y + item.y + self.frames.fy, self.icon_w, self.icon_h)
if item.color then core.display.drawQuadPart(self.display_x + item.x + self.frames.fx, self.display_y + item.y + self.frames.fy, self.icon_w, self.icon_h, item.angle, item.color[1], item.color[2], item.color[3], 128) end
if item.color then core.display.drawQuadPart(self.display_x + item.x + self.frames.fx, self.display_y + item.y + self.frames.fy, self.icon_w, self.icon_h, item.angle, item.color[1], item.color[2], item.color[3], 100) end
if self.cur_sel == item.i then core.display.drawQuad(self.display_x + item.x + self.frames.fx, self.display_y + item.y + self.frames.fy, self.icon_w, self.icon_h, 128, 128, 255, 80) end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment