设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1572|回复: 0
打印 上一主题 下一主题

[已经过期] 我方血条问题

[复制链接]

Lv3.寻梦者

梦石
0
星屑
2934
在线时间
388 小时
注册时间
2010-12-4
帖子
141
跳转到指定楼层
1
发表于 2012-1-4 22:52:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一面的血条插件是横向排列的!怎么改成竖向排列呢!


#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================


# ————————————————————————————————————

# ▼▲▼ XRXS_BP 2. HP,SPメーター表示 ▼▲▼
# by 桜雅 在土

#==============================================================================
# ■ Window_BattleStatus
#==============================================================================
class Window_BattleStatus < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化
  #--------------------------------------------------------------------------
  alias xrxs_bp2_refresh refresh
  def refresh
    xrxs_bp2_refresh
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors
      actor_x = i * 160 + 5
      draw_actor_hp_meter(actor, actor_x, 132, 100)
    end
  end
end
#==============================================================================
# ■ Window_Base
#==============================================================================
class Window_Base < Window
  #--------------------------------------------------------------------------
  # ● HP描画
  #--------------------------------------------------------------------------
  def draw_actor_hp_meter(actor, x, y, width =156, type = 0)
    if type == 1 and actor.hp == 0
      return
    end
    self.contents.font.color = system_color
    self.contents.fill_rect(x-1, y+27, width+2,6, Color.new(0, 0, 0, 255))
    w = width * actor.hp / [actor.maxhp,1].max
    self.contents.fill_rect(x, y+28, w,1, Color.new(255, 96, 96, 255))
    self.contents.fill_rect(x, y+29, w,1, Color.new(255, 0, 0, 255))
    self.contents.fill_rect(x, y+30, w,1, Color.new(128, 0, 0, 255))
    self.contents.fill_rect(x, y+31, w,1, Color.new(0, 0, 0, 255))
  end
end


#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-10-1 02:15

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表