shadow text color override

This commit is contained in:
kepler155c@gmail.com 2018-01-03 02:43:17 -05:00
parent 1108c173d7
commit dc9d174085
2 changed files with 3 additions and 1 deletions

View File

@ -2659,6 +2659,7 @@ UI.TextEntry.defaults = {
shadowText = '',
focused = false,
textColor = colors.white,
shadowTextColor = colors.gray,
backgroundColor = colors.black, -- colors.lightGray,
backgroundFocusColor = colors.black, --lightGray,
height = 1,
@ -2717,7 +2718,7 @@ function UI.TextEntry:draw()
text = _rep('*', #text)
end
else
tc = colors.gray
tc = self.shadowTextColor
text = self.shadowText
end

View File

@ -457,6 +457,7 @@ end
--[[ String functions ]] --
function Util.toBytes(n)
if not tonumber(n) then error('Util.toBytes: n must be a number', 2) end
if n >= 1000000 or n <= -1000000 then
return string.format('%sM', math.floor(n/1000000 * 10) / 10)
elseif n >= 1000 or n <= -1000 then