赞 | 675 |
VIP | 62 |
好人卡 | 144 |
积分 | 336 |
经验 | 110435 |
最后登录 | 2024-11-1 |
在线时间 | 5108 小时 |
Lv5.捕梦者
- 梦石
- 0
- 星屑
- 33621
- 在线时间
- 5108 小时
- 注册时间
- 2012-11-19
- 帖子
- 4878
|
复制以下脚本,插入到 main 前
#============================================================================== 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 #==============================================================================
#==============================================================================
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
#==============================================================================
效果图:
|
评分
-
查看全部评分
|