From 8ac62dbeec74314d27c428b6e010c925d8be5fd3 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Thu, 16 May 2013 22:50:36 +0000 Subject: [PATCH] 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 --- game/engines/default/engine/HotkeysIconsDisplay.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game/engines/default/engine/HotkeysIconsDisplay.lua b/game/engines/default/engine/HotkeysIconsDisplay.lua index 61625b25a5..ea1387bebf 100644 --- a/game/engines/default/engine/HotkeysIconsDisplay.lua +++ b/game/engines/default/engine/HotkeysIconsDisplay.lua @@ -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 -- GitLab