| 赞 | 7 |
| VIP | |
| 好人卡 | |
| 积分 | 19 |
| 经验 | |
| 最后登录 | 2022-10-10 |
| 在线时间 | 316 小时 |
- 梦石
- 0
- 星屑
- 1939
- 在线时间
- 316 小时
- 注册时间
- 2018-3-4
- 回帖
- 48
|
发表于 2018-5-17 21:39:51
|
显示全部楼层
本帖最后由 真紅樂章 于 2018-5-17 21:41 编辑
先抱个歉 
因为小紅也是初学脚本所以忽略了呢 
值槽长度的修改应该是Window_Base的这边才对呢 
[pre lang="ruby"] #--------------------------------------------------------------------------
# ● 以 当前值/最大值 这样的分数形式绘制当前值和最大值
# current : 当前值
# max : 最大值
# color1 : 当前值的颜色
# color2 : 最大值的颜色
#--------------------------------------------------------------------------
def draw_current_and_max_values(x, y, width, current, max, color1, color2)
change_color(color1)
xr = x + width
if width < 96
draw_text(xr - 40, y, 42, line_height, current, 2)
else
draw_text(xr - 92, y, 42, line_height, current, 2)
change_color(color2)
draw_text(xr - 52, y, 12, line_height, "/", 2)
draw_text(xr - 42, y, 42, line_height, max, 2)
end
end[/pre] |
|