Merge pull request #951 from chrox/fix_fgcolor

fix fgcolor of inputbox is always 0.0
This commit is contained in:
Qingping Hou
2014-10-05 01:03:40 -07:00

View File

@@ -51,7 +51,7 @@ end
function InputText:initTextBox(text)
self.text = text
self:initCharlist(text)
local fgcolor = 0.0, self.text == "" and 0.5 or 1.0
local fgcolor = self.text == "" and 0.5 or 1.0
local text_widget = nil
local show_text = self.text