| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 1 | 
 
| 积分 | 1 | 
 
| 经验 | 3103 | 
 
| 最后登录 | 2012-12-11 | 
 
| 在线时间 | 95 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 95 小时
 
        - 注册时间
 - 2012-4-18
 
        - 帖子
 - 90
 
 
 
 | 
	
 本帖最后由 daxuexinsheng 于 2012-6-9 20:11 编辑  
 
不知道为什么,在战斗时使用特技时这个窗口不会释放,挡住了战斗画面,在特技产生伤害效果后窗口才释放。 
 
 
工程在做菜单时修改了Window_Help,是不是它的影响啊? 
#============================================================================== 
# ■ Window_Help 
#------------------------------------------------------------------------------ 
#  特技及物品的说明、角色的状态显示的窗口。 
#============================================================================== 
 
class Window_Help < Window_Base 
  #-------------------------------------------------------------------------- 
  # ● 初始化对像 
  #-------------------------------------------------------------------------- 
  def initialize 
    super(0, 0, 640, 480) 
    self.contents = Bitmap.new(width - 32, height - 32) 
    unless $scene.is_a?(Scene_Battle) 
    self.opacity = 0 
  end 
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 
      if $scene.is_a?(Scene_Skill) 
      self.contents.draw_text(4, 418, self.width - 40, 32, text, align) 
      else   
      self.contents.draw_text(4, 0, self.width - 40, 32, text, align) 
      end 
      @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(enemy) 
    text = enemy.name 
    state_text = make_battler_state_text(enemy, 112, false) 
    if state_text != "" 
      text += "  " + state_text 
    end 
    set_text(text, 1) 
  end 
end 
   
 |   
 
 
 
 |