- Added option to customize left text.

- Added option to show or hide the placement number.
This commit is contained in:
tercio
2014-07-13 17:03:01 -03:00
parent 67c844e8f8
commit 35fe9545f9
12 changed files with 407 additions and 80 deletions
+2 -2
View File
@@ -128,9 +128,9 @@
function _detalhes:NoToK (numero)
return numero
end
--> put points in numbers
-- thanks http://richard.warburton.it
function _detalhes:comma_value(n)
function _detalhes:comma_value (n)
n = _math_floor (n)
local left,num,right = _string_match (n,'^([^%d]*%d)(%d*)(.-)$')
return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right
end