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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@1508 51575b47-30f0-44d4-a5cc-537603b46e54
parent aab95019
No related branches found
No related tags found
No related merge requests found
......@@ -151,28 +151,6 @@ function _M:drawItem(item)
s:erase(0, 0, 0, 0)
text:drawOnSurface(s, col.width - startx - rs_w, 1, self.font, startx, (self.fh - self.font_h) / 2, color[1], color[2], color[3])
item.cols[i]._tex, item.cols[i]._tex_w, item.cols[i]._tex_h = s:glTexture()
--[[
ss:erase(0, 0, 0)
ss:merge(src_ss, 0, 0)
ss:erase(0, 0, 0, 255, 0, 0, offset, self.fh)
if i == 1 and item.nodes then ss:merge(item.shown and minus or plus, 0, 0) end
ss:merge(ls, offset, 0)
ss:drawColorStringBlended(self.font, text, startx, (self.fh - self.font_h) / 2, color[1], color[2], color[3], nil, col.width - startx - rs_w)
item.cols[i]._stex = ss:glTexture()
s:merge(src_s, 0, 0)
if i == 1 and item.nodes then s:merge(item.shown and minus or plus, 0, 0) end
s:drawColorStringBlended(self.font, text, startx, (self.fh - self.font_h) / 2, color[1], color[2], color[3], nil, col.width - startx - rs_w)
item.cols[i]._tex, item.cols[i]._tex_w, item.cols[i]._tex_h = s:glTexture()
sus:merge(src_sus, 0, 0)
sus:erase(0, 0, 0, 255, 0, 0, offset, self.fh)
if i == 1 and item.nodes then sus:merge(item.shown and minus or plus, 0, 0) end
sus:merge(l, offset, 0)
sus:drawColorStringBlended(self.font, text, startx, (self.fh - self.font_h) / 2, color[1], color[2], color[3], nil, col.width - startx - rs_w)
item.cols[i]._sustex = sus:glTexture()
]]
end
if self.on_drawitem then self.on_drawitem(item) end
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