| 赞 | 20 |
| VIP | |
| 好人卡 | |
| 积分 | 13 |
| 经验 | |
| 最后登录 | 2019-7-17 |
| 在线时间 | 995 小时 |
- 梦石
- 0
- 星屑
- 1297
- 在线时间
- 995 小时
- 注册时间
- 2014-12-14
- 回帖
- 2939

|
发表于 2016-7-16 11:35:37
|
显示全部楼层
本帖最后由 Vortur 于 2016-7-16 11:44 编辑
你好~
修改两处:【Window_Base】、【Window_Status】
1.【Window_Base】类 将【绘制能力值】的方法改为[pre lang="ruby"] #--------------------------------------------------------------------------
# # 绘制 变量 值
#--------------------------------------------------------------------------
def draw_actor_mess(actor, x, y, mess)
change_color(system_color) #系统色
draw_text(x, y, 120, line_height, "友好度") #名称显示
change_color(normal_color) #系统色
draw_text(x + 120, y, 36, line_height, $game_variables[1], 2) #数值显示
end
#--------------------------------------------------------------------------
# # 绘制能力值 #适当调整位置,为变量腾挪空间
#--------------------------------------------------------------------------
def draw_actor_param(actor, x, y, param_id)
change_color(system_color)
draw_text(x, y+13, 120, line_height, Vocab::param(param_id))
change_color(normal_color)
draw_text(x + 120, y+13, 36, line_height, actor.param(param_id), 2)
end[/pre]
2.【Window_Status】类中,修改【绘制区域3】的方法:
[pre lang="ruby"] #--------------------------------------------------------------------------
# # 绘制区域 3
#--------------------------------------------------------------------------
def draw_block3(y)
draw_parameters_2(26, y)
draw_parameters(32, y)
draw_equipments(288, y)
end
#--------------------------------------------------------------------------
# # 绘制 变量 值
#--------------------------------------------------------------------------
def draw_parameters_2(x, y)
1.times {|i| draw_actor_mess(@actor, x, y + line_height * i, i + 2) }
end
[/pre]
原理:根据系统预设【绘制能力值】,增加【显示变量】的功能。如有讲得不清楚的地方,欢迎追问!~
|
|