class Bitmap
def draw_number(x, y, nu,pict = RPG::Cache.picture("bonus"))
w=pict.width / 12
h=pict.height
ce = Rect.new(0,0,w,h)
nu=nu.to_s
ar = nu.split(//)
for i in 0...ar.size
ar[i] = ar[i].to_i
end
for sz in ar
if sz == "."
ce.x = 11 * w
else
ce.x = sz * w
end
self.blt(x,y,pict,ce)
x+=w
end
end
end
class Bitmap
def draw_number(x, y, nu,pict = RPG::Cache.picture("bonus"))
w=pict.width / 12
h=pict.height
ce = Rect.new(0,0,w,h)
nu=nu.to_s
ar = nu.split(//)
for i in 0...ar.size
ar[i] = ar[i].to_i
end
for sz in ar
if sz == "."
ce.x = 11 * w
else
ce.x = sz * w
end
self.blt(x,y,pict,ce)
x+=w
end
end
end