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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3665 51575b47-30f0-44d4-a5cc-537603b46e54
parent e834cff2
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,10 @@ Mouse: #00FF00#Left click#FFFFFF# to increase a stat; #00FF00#right click#FFFFFF
end
end
local prev_sel = nil
function _M:onSelectStat(item)
if item == prev_sel then return end
prev_sel = item
local text , h = self:getStatDescription(item.stat_id)
local fh = self.font:lineSkip()
self.c_desc:createItem(item, text)
......@@ -534,6 +537,7 @@ function _M:incStat(v)
self.stats_increased[sel] = (self.stats_increased[sel] or 0) + v
self.c_list:onSelect(true)
self.c_list:drawItem(self.c_list.list[self.c_list.sel])
self.c_points.text = _points_text:format(self.actor.unused_stats)
self.c_points:generate()
self.new_stats_changed = true
......
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