| 赞 | 664 |
| VIP | |
| 好人卡 | |
| 积分 | 345 |
| 经验 | |
| 最后登录 | 2024-7-10 |
| 在线时间 | 5096 小时 |
- 梦石
- 0
- 星屑
- 34467
- 在线时间
- 5096 小时
- 注册时间
- 2012-11-19
- 回帖
- 4715

|
发表于 2013-5-16 00:09:13
|
显示全部楼层
复制以下脚本,插入到 main 前
[pre lang="ruby" line="1"]#==============================================================================
class Window_Help < Window_Base
#--------------------------------------------------------------------------
def set_enemy(enemy)
self.contents.clear
self.contents.font.color = normal_color
self.contents.draw_text(10, 0, 146, 32, enemy.name)
self.contents.font.color = system_color
self.contents.draw_text(160, 0, 86, 32, "HP:")
self.contents.draw_text(390, 0, 86, 32, "SP:")
cx = contents.text_size(enemy.maxhp.to_s).width
bx = contents.text_size(enemy.hp.to_s).width
self.contents.font.color = normal_color
self.contents.draw_text(265 - bx, 0, bx, 32, enemy.hp.to_s)
self.contents.draw_text(270, 0, 32, 32, "/")
self.contents.draw_text(285, 0, cx, 32, enemy.maxhp.to_s)
dx = contents.text_size(enemy.maxsp.to_s).width
ex = contents.text_size(enemy.sp.to_s).width
self.contents.font.color = normal_color
self.contents.draw_text(485 - ex, 0, ex, 32, enemy.sp.to_s)
self.contents.draw_text(490, 0, 32, 32, "/")
self.contents.draw_text(505, 0, dx, 32, enemy.maxsp.to_s)
state_text = make_battler_state_text(enemy, 112, false)
if state_text != ""
text += " " + state_text
end
text = enemy.name
set_text(text, 0)
end
#---------------------------------------------------------------------------
end
#==============================================================================[/pre]
效果图:
|
评分
-
查看全部评分
|