redpandagames
Member
I am printing variables in a custom window, but I can't get the commas to show up. If the variable is greater than 999, obviously, I would want the number to be comma separated.
#initialize the window
def self.initialize(x, y, w, h, opacity, back_opacity)
@window = Window_Base.new(x,y,w,h)
@window.contents = Bitmap.new(@window.width - 32, @window.height - 32)
@window.opacity = opacity
@window.back_opacity = back_opacity
end #method
#draw a single variable
def self.variable(x,y,w,h,i)
@window.contents.draw_text(x, y, w, h, "" + "" + "" + $game_variables.to_s, 0)
end #method
What do I need to do?
Thanks in advance for your help.
#initialize the window
def self.initialize(x, y, w, h, opacity, back_opacity)
@window = Window_Base.new(x,y,w,h)
@window.contents = Bitmap.new(@window.width - 32, @window.height - 32)
@window.opacity = opacity
@window.back_opacity = back_opacity
end #method
#draw a single variable
def self.variable(x,y,w,h,i)
@window.contents.draw_text(x, y, w, h, "" + "" + "" + $game_variables.to_s, 0)
end #method
What do I need to do?
Thanks in advance for your help.