mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Count number of vertices instead of faces, added formatted_number to CommonMethods
This commit is contained in:
@@ -17,6 +17,14 @@ class IMICFPS
|
||||
end
|
||||
end
|
||||
|
||||
def formatted_number(number)
|
||||
string = number.to_s.reverse.scan(/\d{1,3}/).join(",").reverse
|
||||
|
||||
string.insert(0, "-") if number < 0
|
||||
|
||||
return string
|
||||
end
|
||||
|
||||
def draw_rect(*args)
|
||||
$window.draw_rect(*args)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user