diff --git a/changelog.txt b/changelog.txt index b2d5887..e561c24 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,11 @@ ================================================ -Version 0.9.2.4 - Alpha (May 27 - 2012) +Version 0.9.2.5 - Alpha (June 1 - 2012) +================================================ +[FIXED] the text object not drawing numbers in certain situations +[FIXED] a typo in the changelog + +================================================ +Version 0.9.2.4 - Alpha (May 29 - 2012) ================================================ [FIXED] the SetSkin(skin) method causing a stack overflow diff --git a/init.lua b/init.lua index c097d96..778e47d 100644 --- a/init.lua +++ b/init.lua @@ -9,7 +9,7 @@ loveframes = {} -- library info loveframes.info = {} loveframes.info.author = "Nikolai Resokav" -loveframes.info.version = "0.9.2.4" +loveframes.info.version = "0.9.2.5" loveframes.info.stage = "Alpha" -- library configurations diff --git a/objects/text.lua b/objects/text.lua index c6a7d14..102f2c9 100644 --- a/objects/text.lua +++ b/objects/text.lua @@ -122,6 +122,10 @@ function text:SetText(t) if dtype == "table" then prevcolor = v + elseif dtype == "number" then + + table.insert(self.text, {color = prevcolor, text = tostring(v)}) + elseif dtype == "string" then v = v:gsub(string.char(9), " ")