I have some questions about the default draw_gauge
#-------------------------------------------------------------------------- # * Draw Gauge # rate : Rate (full at 1.0) # color1 : Left side gradation # color2 : Right side gradation #-------------------------------------------------------------------------- def draw_gauge(x, y, width, rate, color1, color2) fill_w = (width * rate).to_i gauge_y = y + line_height - 8 contents.fill_rect(x, gauge_y, width, 6, gauge_back_color) contents.gradient_fill_rect(x, gauge_y, fill_w, 6, color1, color2) endright here. I tried to use it on a custom window I made however, the gauge is so small, I want a larger type of gauge. How can I make a fat gauge for example?
#-------------------------------------------------------------------------- # * Draw Gauge # rate : Rate (full at 1.0) # color1 : Left side gradation # color2 : Right side gradation #-------------------------------------------------------------------------- def draw_gauge(x, y, width, rate, color1, color2) fill_w = (width * rate).to_i gauge_y = y + line_height - 8 contents.fill_rect(x, gauge_y, width, 6, gauge_back_color) contents.gradient_fill_rect(x, gauge_y, fill_w, 6, color1, color2) endright here. I tried to use it on a custom window I made however, the gauge is so small, I want a larger type of gauge. How can I make a fat gauge for example?