Project1

标题: RTAP战斗CP跳每个人不同图标下面这串怎么改 [打印本页]

作者: zhang58604616    时间: 2013-3-23 20:01
标题: RTAP战斗CP跳每个人不同图标下面这串怎么改
  #--------------------------------------------------------------------------
  # ● 生成战斗CP条
  #--------------------------------------------------------------------------
  def create_rtabcp_gauge
    @cpgauge_back = Sprite.new(@viewport3)
    @cpgauge_back.bitmap = Bitmap.new(400, 8)
    @cpgauge_back.bitmap.gradient_fill_rect(0, 0, 400, 16, Color.new(255, 255, 255), Color.new(0, 0, 255))
    @cpgauge_back.x = 16
    @cpgauge_back.y = 16
    # 为战斗中的各个角色生成其图标
    @icons = {}
    for iii in $game_party.members
      @icons[iii] = Sprite.new(@viewport3)
      @icons[iii].bitmap = Bitmap.new("Graphics/System/bicon1.png")
      @icons[iii].ox = 12
      @icons[iii].oy = 12
      @icons[iii].x = 16
      @icons[iii].y = 20
    end
    for iii in $game_troop.members
      @icons[iii] = Sprite.new(@viewport3)
      @icons[iii].bitmap = Bitmap.new("Graphics/System/bicon2.png")
      @icons[iii].ox = 12
      @icons[iii].oy = 12
      @icons[iii].x = 16
      @icons[iii].y = 20
    end
  end
作者: zhang58604616    时间: 2013-3-23 20:05
补充下  如果能改脚本 把CP条头像改成战斗图就更好了  因为我用的是横版  所以战斗图就是行走图




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1