| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 4 |  
| 积分 | 1 |  
| 经验 | 1887 |  
| 最后登录 | 2013-12-19 |  
| 在线时间 | 44 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间44 小时注册时间2008-4-1帖子51 | 
| 最佳答案来了      :lol #==============================================================================
 # ■ Window_BattleStatus
 #------------------------------------------------------------------------------
 #  显示战斗画面同伴状态的窗口。
 #==============================================================================
 
 class Window_BattleStatus < Window_Base
 #--------------------------------------------------------------------------
 # ● 初始化对像,
 #--------------------------------------------------------------------------
 def initialize
 
 @have_head = true
 super(0, 0, 640, 480)  #这里可以调整血条的位置
 self.contents = Bitmap.new(width - 32, height - 32)
 @level_up_flags = [false, false, false, false]
 @sp = Sprite.new
 @sp.bitmap = Bitmap.new("Graphics/Battlers/Head1.png") #图片筐位置
 @sp.z = 9998
 @sp.y = [email protected]   #图片 x坐标
 @sp.x = [email protected]/2    #图片 y坐标
 @hp = Sprite.new
 @hp.bitmap = Bitmap.new("Graphics/Battlers/Head2.png") #图片筐位置
 @hp.z = 9990
 @hp.y = [email protected]   #图片 x坐标
 @hp.x = [email protected]/2    #图片 y坐标
 self.opacity = 0
 refresh
 end
 #--------------------------------------------------------------------------
 # ● 释放
 #--------------------------------------------------------------------------
 def dispose
 super
 end
 #--------------------------------------------------------------------------
 # ● 设置升级标志
 #     actor_index : 角色索引
 #--------------------------------------------------------------------------
 def level_up(actor_index)
 @level_up_flags[actor_index] = true
 end
 #--------------------------------------------------------------------------
 # ● 刷新
 #--------------------------------------------------------------------------
 def refresh
 self.contents.clear
 @item_max = $game_party.actors.size
 actor = $game_party.actors[0]
 actor_x = 0 * 100 + 4
 draw_actor_hp(actor, actor_x, 800, 900)
 draw_actor_sp(actor, actor_x, 800, 900)
 end
 #--------------------------------------------------------------------------
 # ● 刷新画面
 #--------------------------------------------------------------------------
 def update
 super
 #    if @have_head
 #      @sp.visible = !$game_switches[6]
 #    end
 # 主界面的不透明度下降
 if $game_temp.battle_main_phase
 self.contents_opacity -= 4 if self.contents_opacity > 191
 else
 self.contents_opacity += 4 if self.contents_opacity < 255
 end
 end
 def dispose
 super
 @sp.dispose if @have_head
 @hp.dispose if @have_head
 end
 end
 
 
 | 
 |