draw_text(x, y, width, height, text) 其中x =x坐标 , y =y坐标, width =宽度,height =高度,text =内容,字挤在一起是因为宽度太窄了,把它调宽一点就可以了如 draw_text(x, y, 30, line_height, Vocab::hp_a) 中 30改为120这样的! |
本帖最后由 吾不知 于 2012-8-26 21:05 编辑 Window_Base下def draw_actor_hp,draw_actor_mp,draw_actor_tp 将下面的 draw_gauge 句子注释掉! #-------------------------------------------------------------------------- # ● 绘制 HP #-------------------------------------------------------------------------- def draw_actor_hp(actor, x, y, width = 124) #~ draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2) change_color(system_color) draw_text(x, y, 30, line_height, Vocab::hp_a) draw_current_and_max_values(x, y, width, actor.hp, actor.mhp, hp_color(actor), normal_color) end #-------------------------------------------------------------------------- # ● 绘制 MP #-------------------------------------------------------------------------- def draw_actor_mp(actor, x, y, width = 124) #~ draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2) change_color(system_color) draw_text(x, y, 30, line_height, Vocab::mp_a) draw_current_and_max_values(x, y, width, actor.mp, actor.mmp, mp_color(actor), normal_color) end #-------------------------------------------------------------------------- # ● 绘制 TP #-------------------------------------------------------------------------- def draw_actor_tp(actor, x, y, width = 124) #~ draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2) change_color(system_color) draw_text(x, y, 30, line_height, Vocab::tp_a) change_color(tp_color(actor)) draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2) end |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-11 19:16
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.