This commit is contained in:
2024-09-12 17:25:45 +02:00
commit b4b2350b88
224 changed files with 172565 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
LUI.UIPrettyNumber = {}
LUI.UIPrettyNumber.new = function ( f1_arg0, f1_arg1 )
assert( f1_arg1 )
assert( type( f1_arg1.speed ) == "number" )
assert( type( f1_arg1.initialValue ) == "number" )
local self = assert
local f1_local1
if f1_arg1.precision and type( f1_arg1.precision ) ~= "number" then
f1_local1 = false
else
f1_local1 = true
end
self( f1_local1 )
f1_arg1.precision = f1_arg1.precision or 1
self = LUI.UIText.new( f1_arg0 )
self.id = "UIPrettyNumber"
if self.setupPrettyNumber then
self:setupPrettyNumber( f1_arg1.speed, f1_arg1.initialValue, f1_arg1.precision )
end
return self
end