赞 | 3 |
VIP | 0 |
好人卡 | 2 |
积分 | 21 |
经验 | 39083 |
最后登录 | 2023-4-3 |
在线时间 | 950 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2111
- 在线时间
- 950 小时
- 注册时间
- 2015-7-16
- 帖子
- 767
|
請慢用
- #==============================================================================
- #■ 姨媽自訂計量條顏色 by姨媽
- #
- # 欲配合姨媽功能型戰鬥介面使用,請將該腳本內的GAUGE_COLOR_HAVE設為true
- # ・2014/01/25:單獨擁有字體對齊
- #==============================================================================
- module YM_GAUGE_COLOR
-
- #HP顏色1(左端RGB顏色)
- HP_COLOR1 = Color.new(255,65,15)
- #HP顏色2(右端RGB顏色)
- HP_COLOR2 = Color.new(255,105,15)
- #MP顏色1(左端RGB顏色)
- MP_COLOR1 = Color.new(50,100,255)
- #MP顏色2(右端RGB顏色)
- MP_COLOR2 = Color.new(55,130,255)
- #TP顏色1(左端RGB顏色)
- TP_COLOR1 = Color.new(105,225,70)
- #TP顏色2(右端RGB顏色)
- TP_COLOR2 = Color.new(130,210,65)
- end
- class Window_Base < Window
- #--------------------------------------------------------------------------
- # HP
- #--------------------------------------------------------------------------
- def draw_actor_hp(actor, x, y, width = 124)
- draw_gauge(x, y, width, actor.hp_rate, YM_GAUGE_COLOR::HP_COLOR1, YM_GAUGE_COLOR::HP_COLOR2)
- change_color(system_color)
- contents.font.name="VL Gothic"
- 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)
- contents.font.name=Font.default_name
- end
- #--------------------------------------------------------------------------
- # MP
- #--------------------------------------------------------------------------
- def draw_actor_mp(actor, x, y, width = 124)
- draw_gauge(x, y, width, actor.mp_rate, YM_GAUGE_COLOR::MP_COLOR1, YM_GAUGE_COLOR::MP_COLOR2)
- change_color(system_color)
- contents.font.name="VL Gothic"
- 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)
- contents.font.name=Font.default_name
- end
- #--------------------------------------------------------------------------
- # TP
- #--------------------------------------------------------------------------
- def draw_actor_tp(actor, x, y, width = 124)
- draw_gauge(x, y, width, actor.tp_rate, YM_GAUGE_COLOR::TP_COLOR1, YM_GAUGE_COLOR::TP_COLOR2)
- change_color(system_color)
- contents.font.name="VL Gothic"
- 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)
- contents.font.name=Font.default_name
- end
- end
复制代码 |
评分
-
查看全部评分
|