mouse triple click + textEntry scroll ind

This commit is contained in:
kepler155c@gmail.com
2020-04-10 22:51:18 -06:00
parent cd6ef0da50
commit 775871c548
5 changed files with 25 additions and 7 deletions

View File

@@ -74,7 +74,9 @@ function UI.TextEntry:draw()
text = self.shadowText
end
self:write(1, 1, ' ' .. Util.widthify(text, self.width - 2) .. ' ', bg, tc)
local ss = self.entry.scroll > 0 and '\183' or ' '
self:write(2, 1, Util.widthify(text, self.width - 2) .. ' ', bg, tc)
self:write(1, 1, ss, bg, self.shadowTextColor)
if self.entry.mark.active then
local tx = math.max(self.entry.mark.x - self.entry.scroll, 0)