查看: 2004|回复: 1

[已经解决] 菜单进行修改后出现不明bug

[复制链接]
梦石
0
星屑
1515
在线时间
10 小时
注册时间
2015-3-13
回帖
0
发表于 2015-7-5 17:31:42 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 酸酸_脑子报废中 于 2015-7-5 17:31 编辑

    这里新人qaq
    是这样的 看了主站http://6rweb.sinaapp.com/articles/4860  的视频教程后修改,但是出现了在菜单中存档和物品点击下去都打不开,还有一个早一点的bug是点击一栏后返回,光标会出现在下一行(只有半行),可本身并没有设计那么多行qaq
    求大神指教qaq谢谢
    捕获.PNG 这个是第一个bug


然后是 修改过的脚本【不懂怎么添加脚本 只能这样了
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
#  处理菜单画面的类。
#==============================================================================

class Scene_Menu
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     menu_index : 命令光标的初期位置
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # ● 主处理
  #--------------------------------------------------------------------------
  def main
    # 生成命令窗口
    #s1 = "  故事之物 "
    #s2 = " 使用书签 "
    #s3 = "迂回之地 "
    @command_window = Window_Menu.new#(80, [s1, s2, s3])
    @command_window.index = @menu_index
    # 同伴人数为 0 的情况下
    if $game_party.actors.size == 0
      # 物品无效化
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
    # 禁止存档的情况下
    if $game_system.save_disabled
      # 存档无效
      @command_window.disable_item(3)
    end
    # 生成状态窗口
    @status_window = Window_MenuStatus.new
    @status_window.x = 0
    @status_window.y = 0
    # 执行过渡
    Graphics.transition
    # 主循环
    loop do
      # 刷新游戏画面
      Graphics.update
      # 刷新输入信息
      Input.update
      # 刷新画面
      update
      # 如果切换画面就中断循环
      if $scene != self
        break
      end
    end
    # 准备过渡
    Graphics.freeze
    # 释放窗口
    @command_window.dispose
    @status_window.dispose
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面
  #--------------------------------------------------------------------------
  def update
    # 刷新窗口
    @command_window.update
    @status_window.update
    # 命令窗口被激活的情况下: 调用 update_command
    if @command_window.active
      update_command
      return
    end
    # 状态窗口被激活的情况下: 调用 update_status
    if @status_window.active
      update_status
      return
    end
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面 (命令窗口被激活的情况下)
  #--------------------------------------------------------------------------
  def update_command
    # 按下 B 键的情况下
    if Input.trigger?(Input::B)
      # 演奏取消 SE
      $game_system.se_play($data_system.cancel_se)
      # 切换的地图画面
      $scene = Scene_Map.new
      return
    end
    # 按下 C 键的情况下
    if Input.trigger?(Input::C)
      # 同伴人数为 0、存档、游戏结束以外的场合
      if $game_party.actors.size == 0 and @command_window.index < 3
        # 演奏冻结 SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # 命令窗口的光标位置分支
      case @command_window.index
      when 0  # 物品
        # 演奏确定 SE
        $game_system.se_play($data_system.decision_se)
        # 切换到物品画面
        $data_system.words.item
      when 1  # 存档
        # 禁止存档的情况下
        if " 存档 "
          # 演奏确定 SE
          $game_system.se_play($data_system.decision_se)
          return
        end
        # 演奏确定 SE
        $game_system.se_play($data_system.decision_se)
        # 切换到存档画面
        $scene = Scene_Save.new
      when 2  # 游戏结束
        # 演奏确定 SE
        $game_system.se_play($data_system.decision_se)
        # 切换到游戏结束画面
        $scene = Scene_End.new
      end
      return
    end
  end
end











(第二个)

    #==============================================================================
# ■ Window_Menu
#------------------------------------------------------------------------------
#  菜单命令选择行窗口。
#==============================================================================
class Window_Menu < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     width    : 窗口的宽
  #     commands : 命令字符串序列
  #--------------------------------------------------------------------------
  def initialize#(width, commands)
    # 由命令的个数计算出窗口的高
    super(160, 0, 480, 64)
    @commands = ["  故事之物 ", " 使用书签 ", "迂回之地 "]
    @column_max = 3   
    @item_max = @commands.size
    self.z = 150
    self.contents = Bitmap.new(480-32, 32)
    refresh
    self.index = 0
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    for i in 0...@item_max
      draw_item(i, normal_color)
    end
  end
  #--------------------------------------------------------------------------
  # ● 描绘项目
  #     index : 项目编号
  #     color : 文字色
  #--------------------------------------------------------------------------
  def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(170 * index, 1, self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index])
  end
  #--------------------------------------------------------------------------
  # ● 项目无效化
  #     index : 项目编号
  #--------------------------------------------------------------------------
  def disable_item(index)
    draw_item(index, disabled_color)
  end
  #--------------------------------------------------------------------------
  # ● 刷新光标矩形
  #--------------------------------------------------------------------------
  def update_cursor
    self.contents.clear
    for i in 0...@item_max
      draw_item(i, normal_color)
    end
  end
end











(第三个)
#==============================================================================
# ■ Window_Item
#------------------------------------------------------------------------------
#  物品画面、战斗画面、显示浏览物品的窗口。
#==============================================================================

class Window_Item < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #--------------------------------------------------------------------------
  def initialize
    super(0, 64, 640, 416)
    @column_max = 2
    refresh
    self.index = 0
    # 战斗中的情况下将窗口移至中央并将其半透明化
    if $game_temp.in_battle
      self.y = 64
      self.height = 256
      self.back_opacity = 160
    end
  end
  #--------------------------------------------------------------------------
  # ● 获取物品
  #--------------------------------------------------------------------------
  def item
    return @data[self.index]
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    if self.contents != nil
      self.contents.dispose
      self.contents = nil
    end
    @data = []
    # 添加物品
    for i in 1...$data_items.size
      if $game_party.item_number(i) > 0
        @data.push($data_items)
      end
    end
    # 在战斗中以外添加武器、防具
    unless $game_temp.in_battle
      for i in 1...$data_weapons.size
        if $game_party.weapon_number(i) > 0
          @data.push($data_weapons)
        end
      end
      for i in 1...$data_armors.size
        if $game_party.armor_number(i) > 0
          @data.push($data_armors)
        end
      end
    end
    # 如果项目数不是 0 就生成位图、重新描绘全部项目
    @item_max = @data.size
    if @item_max > 0
      self.contents = Bitmap.new(width - 32, row_max * 32)
      for i in 0...@item_max
        draw_item(i)
      end
    end
  end
  #--------------------------------------------------------------------------
  # ● 描绘项目
  #     index : 项目编号
  #--------------------------------------------------------------------------
  def draw_item(index)
    item = @data[index]
    case item
    when RPG::Item
      number = $game_party.item_number(item.id)
    when RPG::Weapon
      number = $game_party.weapon_number(item.id)
    when RPG::Armor
      number = $game_party.armor_number(item.id)
    end
    if item.is_a?(RPG::Item) and
       $game_party.item_can_use?(item.id)
      self.contents.font.color = normal_color
    else
      self.contents.font.color = disabled_color
    end
    x = 4 + index % 2 * (288 + 32)
    y = index / 2 * 32
    rect = Rect.new(x, y, self.width / @column_max - 32, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    bitmap = RPG::Cache.icon(item.icon_name)
    opacity = self.contents.font.color == normal_color ? 255 : 128
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
    self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
    self.contents.draw_text(x + 240, y, 16, 32, ":", 1)
    self.contents.draw_text(x + 256, y, 24, 32, number.to_s, 2)
  end
  #--------------------------------------------------------------------------
  # ● 刷新帮助文本
  #--------------------------------------------------------------------------
  def update_help
    @help_window.set_text(self.item == nil ? "" : self.item.description)
  end
end








(第四个)
#==============================================================================
# ■ Window_MenuStatus
#------------------------------------------------------------------------------
#  显示菜单画面和同伴状态的窗口。
#==============================================================================

class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 初始化目标
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 480)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
    self.active = false
    self.index = -1
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      x = 64
      y = (i+1) * 116 +35
      actor = $game_party.actors
      bitmap = Bitmap.new("Graphics/sour/" + active.id.to_s + "_h")#RPG::Cache.character(actor.character_name, actor.character_hue)
      cw = bitmap.width
      ch = bitmap.height
      src_rect = Rect.new(0, 0, cw, ch)
      self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
      draw_actor_name(actor, x+80,y-75)
    end
  end
  #--------------------------------------------------------------------------
  # ● 刷新光标矩形
  #--------------------------------------------------------------------------
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      self.cursor_rect.set(0, @index * 110+50, 210, 105)
      refresh
    draw_status
   end
  end
  def draw_status
    actor = $game_party.actors[@index]
    bitmap = Bitmap.new("Graphics/sour/" + active.id.to_s + "_b")
    src_rect = Rect.new(0, 0, bitmap,width. bitmap.height)
    self.centent.blt(100, 50, bltmap. src_rect,255)
    draw_actor_graphic(@actor, 130 + 96,64)
    draw_actor_name(@actor, 130 + 96,64)
    draw_actor_class(@actor, 428,64)
    draw_actor_level(@actor, 230 + 36,64)
    draw_actor_state(@actor, 430 + 36,64)
    draw_actor_hp(@actor, 130 + 96,112,172)
    draw_actor_sp(@actor, 130 + 96,112,172)
    draw_actor_parameter(@actor, 130 + 96,192,0)
    draw_actor_parameter(@actor, 130 + 96,368,1)
    draw_actor_parameter(@actor, 130 + 96,400,2)
    self.contents.font.color = system_color
    self.contents.draw_text(130 + 320, 112, 80, 32, "EXP")
    self.contents.draw_text(130 + 320, 114, 80, 32, "NEXT")
    self.contents.font.color = normal_color
    self.contents.draw_text(130 + 320 , 80, 84, 32, @actor.exp_s, 2)
    self.contents.draw_text(130 + 320 , 80, 84, 32, @actor.next_rest_exp_s, 2)
    self.contents.font.color = system_color
    self.contents.draw_text(90, 320, 208, 96, 32, "故事之物")
    draw_item_name($data_weapons[@actor.weapon_id], 130 + 320 + 16, 208)
    draw_item_name($data_armors[@actor.armor1_id], 130 + 320 + 16, 256)
    draw_item_name($data_armors[@actor.armor2_id], 130 + 320 + 16, 304)
    draw_item_name($data_armors[@actor.armor3_id], 130 + 320 + 16, 352)
    draw_item_name($data_armors[@actor.armor4_id], 130 + 320 + 16, 400)

  end
end








谢谢qaq

评分

参与人数 1星屑 +35 收起 理由
RyanBern + 35 手动认可奖励

查看全部评分

梦石
0
星屑
76
在线时间
1379 小时
注册时间
2012-7-5
回帖
1643

开拓者

发表于 2015-7-5 20:39:29 | 显示全部楼层
很多地方都写得不对 要不然你加我qq947375548, 下面是已经能用的代码
修改后
  1. #==============================================================================
  2. # ■ Scene_Menu
  3. #------------------------------------------------------------------------------
  4. #  处理菜单画面的类。
  5. #==============================================================================

  6. class Scene_Menu
  7.   #--------------------------------------------------------------------------
  8.   # ● 初始化对像
  9.   #     menu_index : 命令光标的初期位置
  10.   #--------------------------------------------------------------------------
  11.   def initialize(menu_index = 0)
  12.     @menu_index = 0 # menu_index
  13.   end
  14.   #--------------------------------------------------------------------------
  15.   # ● 主处理
  16.   #--------------------------------------------------------------------------
  17.   def main
  18.     # 生成命令窗口
  19.     #s1 = "  故事之物 "
  20.     #s2 = " 使用书签 "
  21.     #s3 = "迂回之地 "
  22.     @command_window = Window_Menu.new#(80, [s1, s2, s3])
  23.     @command_window.index = @menu_index
  24.     # 同伴人数为 0 的情况下
  25.     if $game_party.actors.size == 0
  26.       # 物品无效化
  27.       @command_window.disable_item(0)
  28.       @command_window.disable_item(1)
  29.       @command_window.disable_item(2)
  30.       @command_window.disable_item(3)
  31.     end
  32.     # 禁止存档的情况下
  33.     if $game_system.save_disabled
  34.       # 存档无效
  35.       @command_window.disable_item(3)
  36.     end
  37.     # 生成状态窗口
  38.     @status_window = Window_MenuStatus.new
  39.     @status_window.x = 0
  40.     @status_window.y = 0
  41.     # 执行过渡
  42.     Graphics.transition
  43.     # 主循环
  44.     loop do
  45.       # 刷新游戏画面
  46.       Graphics.update
  47.       # 刷新输入信息
  48.       Input.update
  49.       # 刷新画面
  50.       update
  51.       # 如果切换画面就中断循环
  52.       if $scene != self
  53.         break
  54.       end
  55.     end
  56.     # 准备过渡
  57.     Graphics.freeze
  58.     # 释放窗口
  59.     @command_window.dispose
  60.     @status_window.dispose
  61.   end
  62.   #--------------------------------------------------------------------------
  63.   # ● 刷新画面
  64.   #--------------------------------------------------------------------------
  65.   def update
  66.     # 刷新窗口
  67.     @command_window.update
  68.     @status_window.update
  69.     # 命令窗口被激活的情况下: 调用 update_command
  70.     if @command_window.active
  71.       update_command
  72.       return
  73.     end
  74.     # 状态窗口被激活的情况下: 调用 update_status
  75.     if @status_window.active
  76.       update_status
  77.       return
  78.     end
  79.   end
  80.   #--------------------------------------------------------------------------
  81.   # ● 刷新画面 (命令窗口被激活的情况下)
  82.   #--------------------------------------------------------------------------
  83.   def update_command
  84.     # 按下 B 键的情况下
  85.     if Input.trigger?(Input::B)
  86.       # 演奏取消 SE
  87.       $game_system.se_play($data_system.cancel_se)
  88.       # 切换的地图画面
  89.       $scene = Scene_Map.new
  90.       return
  91.     end
  92.     # 按下 C 键的情况下
  93.     if Input.trigger?(Input::C)
  94.       # 同伴人数为 0、存档、游戏结束以外的场合
  95.       if $game_party.actors.size == 0 and @command_window.index < 3
  96.         # 演奏冻结 SE
  97.         $game_system.se_play($data_system.buzzer_se)
  98.         return
  99.       end
  100.       # 命令窗口的光标位置分支
  101.       case @command_window.index
  102.       when 0  # 物品
  103.         # 演奏确定 SE
  104.         $game_system.se_play($data_system.decision_se)
  105.         # 切换到物品画面
  106.         $scene = Scene_Item.new
  107.       when 1  # 存档
  108.         # 演奏确定 SE
  109.         $game_system.se_play($data_system.decision_se)
  110.         # 切换到存档画面
  111.         $scene = Scene_Save.new
  112.       when 2  # 游戏结束
  113.         # 演奏确定 SE
  114.         $game_system.se_play($data_system.decision_se)
  115.         # 切换到游戏结束画面
  116.         $scene = Scene_End.new
  117.       end
  118.       return
  119.     end
  120.   end
  121. end

  122. #==============================================================================
  123. # ■ Window_Menu
  124. #------------------------------------------------------------------------------
  125. #  菜单命令选择行窗口。
  126. #==============================================================================
  127. class Window_Menu < Window_Selectable
  128.   #--------------------------------------------------------------------------
  129.   # ● 初始化对像
  130.   #     width    : 窗口的宽
  131.   #     commands : 命令字符串序列
  132.   #--------------------------------------------------------------------------
  133.   def initialize#(width, commands)
  134.     super(160, 0, 480, 64)
  135.     @commands = ["  故事之物 ", " 使用书签 ", "迂回之地 "]
  136.     @column_max = 3
  137.     @item_max = @commands.size
  138.     self.z = 150
  139.     self.contents = Bitmap.new(480-32, 32)
  140.     self.index = 0
  141.     refresh
  142.   end
  143.   #--------------------------------------------------------------------------
  144.   # ● 刷新
  145.   #--------------------------------------------------------------------------
  146.   def refresh
  147.     self.contents.clear
  148.     for i in 0...@item_max
  149.       draw_item(i, normal_color)
  150.     end
  151.   end
  152.   #--------------------------------------------------------------------------
  153.   # ● 描绘项目
  154.   #     index : 项目编号
  155.   #     color : 文字色
  156.   #--------------------------------------------------------------------------
  157.   def draw_item(index, color)
  158.     self.contents.font.color = color
  159.     rect = Rect.new(170 * index, 1, self.contents.width - 8, 32)
  160.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  161.     self.contents.draw_text(rect, @commands[index])
  162.   end
  163.   #--------------------------------------------------------------------------
  164.   # ● 项目无效化
  165.   #     index : 项目编号
  166.   #--------------------------------------------------------------------------
  167.   def disable_item(index)
  168.     draw_item(index, disabled_color)
  169.   end
  170. end


  171. #==============================================================================
  172. # ■ Window_Item
  173. #------------------------------------------------------------------------------
  174. #  物品画面、战斗画面、显示浏览物品的窗口。
  175. #==============================================================================

  176. class Window_Item < Window_Selectable
  177.   #--------------------------------------------------------------------------
  178.   # ● 初始化对像
  179.   #--------------------------------------------------------------------------
  180.   def initialize
  181.     super(0, 64, 640, 416)
  182.     @column_max = 2
  183.     refresh
  184.     self.index = 0
  185.     # 战斗中的情况下将窗口移至中央并将其半透明化
  186.     if $game_temp.in_battle
  187.       self.y = 64
  188.       self.height = 256
  189.       self.back_opacity = 160
  190.     end
  191.   end
  192.   #--------------------------------------------------------------------------
  193.   # ● 获取物品
  194.   #--------------------------------------------------------------------------
  195.   def item
  196.     return @data[self.index]
  197.   end
  198.   #--------------------------------------------------------------------------
  199.   # ● 刷新
  200.   #--------------------------------------------------------------------------
  201.   def refresh
  202.     if self.contents != nil
  203.       self.contents.dispose
  204.       self.contents = nil
  205.     end
  206.     @data = []
  207.     # 添加物品
  208.     for i in 1...$data_items.size
  209.       if $game_party.item_number(i) > 0
  210.         @data.push($data_items[i])
  211.       end
  212.     end
  213.     # 在战斗中以外添加武器、防具
  214.     unless $game_temp.in_battle
  215.       for i in 1...$data_weapons.size
  216.         if $game_party.weapon_number(i) > 0
  217.           @data.push($data_weapons[i])
  218.         end
  219.       end
  220.       for i in 1...$data_armors.size
  221.         if $game_party.armor_number(i) > 0
  222.           @data.push($data_armors[i])
  223.         end
  224.       end
  225.     end
  226.     # 如果项目数不是 0 就生成位图、重新描绘全部项目
  227.     @item_max = @data.size
  228.     if @item_max > 0
  229.       self.contents = Bitmap.new(width - 32, row_max * 32)
  230.       for i in 0...@item_max
  231.         draw_item(i)
  232.       end
  233.     end
  234.   end
  235.   #--------------------------------------------------------------------------
  236.   # ● 描绘项目
  237.   #     index : 项目编号
  238.   #--------------------------------------------------------------------------
  239.   def draw_item(index)
  240.     item = @data[index]
  241.     case item
  242.     when RPG::Item
  243.       number = $game_party.item_number(item.id)
  244.     when RPG::Weapon
  245.       number = $game_party.weapon_number(item.id)
  246.     when RPG::Armor
  247.       number = $game_party.armor_number(item.id)
  248.     end
  249.     if item.is_a?(RPG::Item) and $game_party.item_can_use?(item.id)
  250.       self.contents.font.color = normal_color
  251.     else
  252.       self.contents.font.color = disabled_color
  253.     end
  254.     x = 4 + index % 2 * (288 + 32)
  255.     y = index * 32 / 2
  256.     rect = Rect.new(x, y, self.width / @column_max - 32, 32)
  257.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  258.     bitmap = RPG::Cache.icon(item.icon_name)
  259.     opacity = self.contents.font.color == normal_color ? 255 : 128
  260.     self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
  261.     self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
  262.     self.contents.draw_text(x + 240, y, 16, 32, ":", 1)
  263.     self.contents.draw_text(x + 256, y, 24, 32, number.to_s, 2)
  264.   end
  265.   #--------------------------------------------------------------------------
  266.   # ● 刷新帮助文本
  267.   #--------------------------------------------------------------------------
  268.   def update_help
  269.     @help_window.set_text(self.item == nil ? "" : self.item.description)
  270.   end
  271. end



  272. #==============================================================================
  273. # ■ Window_MenuStatus
  274. #------------------------------------------------------------------------------
  275. #  显示菜单画面和同伴状态的窗口。
  276. #==============================================================================

  277. class Window_MenuStatus < Window_Selectable
  278.   #--------------------------------------------------------------------------
  279.   # ● 初始化目标
  280.   #--------------------------------------------------------------------------
  281.   def initialize
  282.     super(0, 0, 640, 480)
  283.     self.contents = Bitmap.new(width - 32, height - 32)
  284.     refresh
  285.     self.active = false
  286.     self.index = -1
  287.   end
  288.   #--------------------------------------------------------------------------
  289.   # ● 刷新
  290.   #--------------------------------------------------------------------------
  291.   def refresh
  292.     self.contents.clear
  293.     @item_max = $game_party.actors.size
  294.     for i in 0...$game_party.actors.size
  295.       x = 64
  296.       y = (i+1) * 116 +35
  297.       actor = $game_party.actors[i]
  298.       bitmap = Bitmap.new("Graphics/sour/" + active.id.to_s + "_h")#RPG::Cache.character(actor.character_name, actor.character_hue)#
  299.       cw = bitmap.width
  300.       ch = bitmap.height
  301.       src_rect = Rect.new(0, 0, cw, ch)
  302.       self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
  303.       draw_actor_name(actor, x+80,y-75)
  304.     end
  305.   end
  306.   #--------------------------------------------------------------------------
  307.   # ● 刷新光标矩形
  308.   #--------------------------------------------------------------------------
  309.   def update_cursor_rect
  310.     if @index < 0
  311.       self.cursor_rect.empty
  312.     else
  313.       self.cursor_rect.set(0, @index * 110+50, 210, 105)
  314.     end
  315.   end
  316.   def draw_status
  317.     actor = $game_party.actors[@index]
  318.     bitmap = Bitmap.new("Graphics/sour/" + active.id.to_s + "_b")
  319.     src_rect = Rect.new(0, 0, bitmap,width. bitmap.height)
  320.     self.centent.blt(100, 50, bltmap. src_rect,255)
  321.     draw_actor_graphic(@actor, 130 + 96,64)
  322.     draw_actor_name(@actor, 130 + 96,64)
  323.     draw_actor_class(@actor, 428,64)
  324.     draw_actor_level(@actor, 230 + 36,64)
  325.     draw_actor_state(@actor, 430 + 36,64)
  326.     draw_actor_hp(@actor, 130 + 96,112,172)
  327.     draw_actor_sp(@actor, 130 + 96,112,172)
  328.     draw_actor_parameter(@actor, 130 + 96,192,0)
  329.     draw_actor_parameter(@actor, 130 + 96,368,1)
  330.     draw_actor_parameter(@actor, 130 + 96,400,2)
  331.     self.contents.font.color = system_color
  332.     self.contents.draw_text(130 + 320, 112, 80, 32, "EXP")
  333.     self.contents.draw_text(130 + 320, 114, 80, 32, "NEXT")
  334.     self.contents.font.color = normal_color
  335.     self.contents.draw_text(130 + 320 , 80, 84, 32, @actor.exp_s, 2)
  336.     self.contents.draw_text(130 + 320 , 80, 84, 32, @actor.next_rest_exp_s, 2)
  337.     self.contents.font.color = system_color
  338.     self.contents.draw_text(90, 320, 208, 96, 32, "故事之物")
  339.     draw_item_name($data_weapons[@actor.weapon_id], 130 + 320 + 16, 208)
  340.     draw_item_name($data_armors[@actor.armor1_id], 130 + 320 + 16, 256)
  341.     draw_item_name($data_armors[@actor.armor2_id], 130 + 320 + 16, 304)
  342.     draw_item_name($data_armors[@actor.armor3_id], 130 + 320 + 16, 352)
  343.     draw_item_name($data_armors[@actor.armor4_id], 130 + 320 + 16, 400)

  344.   end
  345. end
复制代码

点评

<s>快去弄个支付宝,然后就可以骗捐款了</s>  发表于 2015-7-5 23:23

评分

参与人数 1梦石 +1 收起 理由
RyanBern + 1 认可答案

查看全部评分


  -fk: -azogi:
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部