| 赞 | 138  | 
 
| VIP | 123 | 
 
| 好人卡 | 5 | 
 
| 积分 | 279 | 
 
| 经验 | 44877 | 
 
| 最后登录 | 2019-12-24 | 
 
| 在线时间 | 1535 小时 | 
 
 
 
 
 
Lv5.捕梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 27907 
 
        - 在线时间
 - 1535 小时
 
        - 注册时间
 - 2006-1-10
 
        - 帖子
 - 2063
 
 
   
 
 | 
	
在 Window_Help   里面修改 
 
最后一段是显示敌人名字,在里面加多一段显示敌人战斗图- #==============================================================================
 
 - # ■ Window_Help
 
 - #------------------------------------------------------------------------------
 
 - #  特技及物品的说明、角色的状态显示的窗口。
 
 - #==============================================================================
 
  
- class Window_Help < Window_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 初始化对像
 
 -   #--------------------------------------------------------------------------
 
 -   def initialize
 
 -     super(0, 0, 640, 64)
 
 -     self.contents = Bitmap.new(width - 32, height - 32)
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 设置文本
 
 -   #     text  : 窗口显示的字符串
 
 -   #     align : 对齐方式 (0..左对齐、1..中间对齐、2..右对齐)
 
 -   #--------------------------------------------------------------------------
 
 -   def set_text(text, align = 0)
 
 -     # 如果文本和对齐方式的至少一方与上次的不同
 
 -     if text != @text or align != @align
 
 -       # 再描绘文本
 
 -       self.contents.clear
 
 -       self.contents.font.color = normal_color
 
 -       self.contents.draw_text(4, 0, self.width - 40, 32, text, align)
 
 -       @text = text
 
 -       @align = align
 
 -       @actor = nil
 
 -     end
 
 -     self.visible = true
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 设置角色
 
 -   #     actor : 要显示状态的角色
 
 -   #--------------------------------------------------------------------------
 
 -   def set_actor(actor)
 
 -     if actor != @actor
 
 -       self.contents.clear
 
 -       draw_actor_name(actor, 4, 0)
 
 -       draw_actor_state(actor, 140, 0)
 
 -       draw_actor_hp(actor, 284, 0)
 
 -       draw_actor_sp(actor, 460, 0)
 
 -       @actor = actor
 
 -       @text = nil
 
 -       self.visible = true
 
 -     end
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 设置敌人
 
 -   #     enemy : 要显示名字和状态的敌人        
 
 -   #--------------------------------------------------------------------------
 
 -   def set_enemy(actor)
 
 -     self.contents.clear
 
 -     draw_actor_name(actor, 240, 0) #名字位置
 
 -     draw_battler_graphics(actor, 32, 130)# 敌人图片 X Y的位置
 
 -     #draw_actor_state(actor, 300, 0)#状态
 
 -     @text = nil
 
 -     self.visible = true
 
 -   end 
 
 -   
 
 -   def draw_battler_graphics(actor, x, y) 
 
 -     battler=RPG::Cache.battler(actor.battler_name, actor.battler_hue) 
 
 -     w = battler.width 
 
 -     h = battler.height 
 
 -     self.contents.blt(x-w/2, y-h, battler, Rect.new(0, 0, w,h)) 
 
 -   end 
 
 - end
 
  复制代码 |   
 
 
 
 |