Skip to content
Snippets Groups Projects
Commit 12ea10cb authored by dg's avatar dg
Browse files

In the levelup screen talents will grey out when unlearnable

git-svn-id: http://svn.net-core.org/repos/t-engine4@5357 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3827ae3b
No related branches found
No related tags found
No related merge requests found
......@@ -470,6 +470,7 @@ function _M:generateList()
talent=t.id,
isgeneric=isgeneric and 0 or 1,
_type=tt.type,
do_shadow = function(item) if not self.actor:canLearnTalent(t) then return true else return false end end,
color=function(item)
if ((self.actor.talents[item.talent] or 0) ~= (self.actor_dup.talents[item.talent] or 0)) then return {255, 215, 0}
elseif self:isUnlearnable(t, true) then return colors.simple(colors.LIGHT_BLUE)
......
......@@ -282,6 +282,7 @@ function _M:display(x, y, nb_keyframes, screen_x, screen_y)
local tal = tree.nodes[j]
tal.entity:toScreen(self.tiles, dx+x + self.icon_offset, dy+y + self.icon_offset, self.icon_size, self.icon_size)
if util.getval(tal.do_shadow, tal) then core.display.drawQuad(dx+x + self.icon_offset, dy+y + self.icon_offset, self.icon_size, self.icon_size, 0, 0, 0, 200) end
local rgb = tal:color()
self:drawFrame(self.talent_frame, dx+x, dy+y, rgb[1]/255, rgb[2]/255, rgb[3]/255, 1)
......
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