| 赞 | 62 |
| VIP | |
| 好人卡 | |
| 积分 | 65 |
| 经验 | |
| 最后登录 | 2025-2-24 |
| 在线时间 | 1275 小时 |
百合控
- 梦石
- 0
- 星屑
- 6548
- 在线时间
- 1275 小时
- 注册时间
- 2013-8-21
- 回帖
- 3522

|
发表于 2014-6-16 10:10:16
|
显示全部楼层
本帖最后由 余烬之中 于 2014-6-21 18:41 编辑
脚本[pre lang="ruby" line="1"]#==============================================================================
# ** Window_Base
#==============================================================================
class Window_Base
#--------------------------------------------------------------------------
# * Draw Simple Status
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y)
draw_actor_level(actor, x, y + line_height * 1)
draw_actor_icons(actor, x, y + line_height * 2)
draw_actor_class(actor, x + 120, y)
draw_actor_hp(actor, x + 120, y + line_height * 1)
case actor.actor.note
when /<TP bar only>/i
draw_actor_tp(actor, x + 120, y + line_height * 2)
when /<MP bar only>/i
draw_actor_mp(actor, x + 120, y + line_height * 2)
when /<No bar>/i
# do nothing
else
draw_actor_mp(actor, x + 120, y + line_height * 2 - 6)
draw_actor_tp(actor, x + 120, y + line_height * 3 - 12)
end
end
end
#==============================================================================
# ** Window_BattleStatus
#==============================================================================
class Window_BattleStatus
#--------------------------------------------------------------------------
# * Draw Gauge Area
#--------------------------------------------------------------------------
def draw_gauge_area(rect, actor)
case actor.actor.note
when /<TP bar only>/i
draw_gauge_area_without_mp(rect, actor)
when /<MP bar only>/i
draw_gauge_area_without_tp(rect, actor)
when /<no bar>/i
# do nothing
else
draw_gauge_area_with_tp(rect, actor)
end
end
#--------------------------------------------------------------------------
# * Draw Gauge Area (without MP)
#--------------------------------------------------------------------------
def draw_gauge_area_without_mp(rect, actor)
draw_actor_hp(actor, rect.x + 0, rect.y, 134)
draw_actor_tp(actor, rect.x + 144, rect.y, 76)
end
end[/pre]
用法注释<TP bar only>只显示TP
注释<MP bar only>只显示MP
注释<no bar>什么都不显示
截图
|
评分
-
查看全部评分
|