def draw_shu(x, y, width, rate, color1, color2) fill_w = (width * rate).to_i gauge_y = y + line_height - 8 contents.fill_rect(x, gauge_y, 6, width, gauge_back_color) contents.gradient_fill_rect(x, gauge_y, 6, fill_w, color1, color2) end
未命名.png (70.9 KB, 下载次数: 17)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |