查看: 2572|回复: 2

[已经过期] 同时存在状态信息脚本和装备说明增强脚本的问题

[复制链接]
梦石
0
星屑
4293
在线时间
789 小时
注册时间
2015-6-27
回帖
62

开拓者

发表于 2017-8-10 13:30:43 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 maotouying 于 2017-8-11 18:23 编辑

这是没有装备说明增强脚本的情况,描述窗口显示在上面,而且光标移到没有状态的地方窗口也不会消失

0G4(R)E9E]2TDZBRA$Z61.png

这是有装备说明增强脚本的情况,窗口挡住状态了,并且如果光标移到没有状态的地方信息窗口就会消失,如果不重新再打开一次,信息窗口就不会出现

QQ图片20170810131917.png


QQ图片20170810131924.png

请问要怎么修改才能在不删除装备说明增强脚本的情况下,把信息窗口弄得像第一个图一样,并且光标移到没有状态的地方信息窗口不会消失呢?

这是状态信息脚本
  1. # ステ―ト詳細確認ウィンドウ
  2. #
  3. # 戦闘時、パーティコマンドに付与されているステートの詳細を確認するためのコマンド
  4. # を追加します。

  5. $imported_yana_scripts ||= {}
  6. $imported_yana_scripts["StateHelpWindow"] = true

  7. module StateHelp
  8.   Buffs = {}
  9.   States = []

  10. # 请按照下面的描写进行备注

  11.   Buffs[[0,:up]] = "HP+25%,最高5级\n持续5回合"
  12.   Buffs[[1,:up]] = "MP+25%,最高5级\n持续5回合"
  13.   Buffs[[2,:up]] = "物攻+25%,最高5级\n持续5回合"
  14.   Buffs[[3,:up]] = "物防+25%,最高5级\n持续5回合"
  15.   Buffs[[4,:up]] = "魔攻+25%,最高5级\n持续5回合"
  16.   Buffs[[5,:up]] = "魔防+25%,最高5级\n持续5回合"
  17.   Buffs[[6,:up]] = "敏捷+25%,最高5级\n持续5回合"
  18.   Buffs[[7,:up]] = "幸运+25%,最高5级\n持续5回合"

  19.   Buffs[[0,:down]] = "HP-25%,最高5级\n持续5回合"
  20.   Buffs[[1,:down]] = "MP-25%,最高5级\n持续5回合"
  21.   Buffs[[2,:down]] = "物攻-25%,最高5级\n持续5回合"
  22.   Buffs[[3,:down]] = "物防-25%,最高5级\n持续5回合"
  23.   Buffs[[4,:down]] = "魔攻-25%,最高5级\n持续5回合"
  24.   Buffs[[5,:down]] = "魔防-25%,最高5级\n持续5回合"
  25.   Buffs[[6,:down]] = "敏捷-25%,最高5级\n持续5回合"
  26.   Buffs[[7,:down]] = "幸运-25%,最高5级\n持续5回合"

  27.   States[1]  = "无法战斗:死亡。"
  28.   States[2]  = "毒:生命再生-10%\n永续。"
  29.   States[3]  = "致盲:物理命中率-60%\n2~4回合。"
  30.   States[4]  = "沉默:无法使用技能\n2~3回合。"
  31.   States[5]  = "混乱:会攻击双方人物\n2~4回合。"
  32.   States[6]  = "睡眠:无法使用法术技能受到伤害立刻解除\n3~5回合。"
  33.   States[7]  = "麻痹:无法行动,不会闪避任何伤害30%解除\n4~6回合。"
  34.   States[8]  = "眩晕:无法行动,20%解除\n1~2回合。"
  35.   States[87]  = "耶"

  36. end
  37. class Game_BattlerBase
  38.   attr_reader :buffs
  39. end

  40. class Window_State < Window_Selectable
  41.   def initialize(help_window)
  42.     super(0,0,32,32)
  43. #     self.x = [Graphics.width / 2 - self.width / 2,0].max
  44. #     self.y = [Graphics.height / 2 - self.height / 2,help_window.height].max
  45.     self.openness = 0
  46.     @help_window = help_window
  47.     refresh
  48.   end
  49.   def all_battle_members;($game_party.battle_members + $game_troop.members).select{|m| m.exist? };end
  50.   def row_max;all_battle_members.size;end
  51.   def col_max
  52.     m = all_battle_members.max_by{|a| a.state_icons.size + a.buff_icons.size }
  53.     [m.state_icons.size + m.buff_icons.size,1].max
  54.   end
  55.   def item_max;row_max*col_max;end
  56.   def item_height; line_height + 2 ; end
  57.   def item_width; line_height + 2 ; end

  58.   def fitting_window
  59.     self.height = item_height * row_max + standard_padding*2
  60.     self.width = 144+(col_max*item_width) + standard_padding*2
  61.     self.x = [Graphics.width / 2 - self.width / 2,0].max
  62.     self.y = [Graphics.height / 2 - self.height / 2,help_window.height].max
  63.   end
  64.   def refresh
  65.     fitting_window
  66.     make_data
  67.     create_contents
  68.     all_battle_members.each_with_index{|a,i|
  69.       draw_actor_name(a,0,i*item_height+1)
  70.       draw_text(128,i*item_height+1,20,line_height,":")
  71.       draw_icons(a, 144, i*item_height+1, contents.width - 144)
  72.     }
  73.   end

  74.   def draw_icons(subject, x, y, width = 96)
  75.     icons = (subject.state_icons + subject.buff_icons)[0, width / item_width]
  76.     icons.each_with_index {|n, i| draw_icon(n, x + item_width * i, y) }
  77.   end

  78.   def item_rect(index)
  79.     rect = Rect.new
  80.     rect.width = item_width
  81.     rect.height = item_height
  82.     rect.x = index % col_max * item_width + 143
  83.     rect.y = index / col_max * item_height
  84.     rect
  85.   end

  86.   def update_help
  87.     @help_window.set_text(description)
  88.   end

  89.   def make_data
  90.     @data = all_battle_members.inject([]){|r,m|
  91.       a = []
  92.       a += m.states.select{|st| st.icon_index != 0 }
  93.       bf = []
  94.       m.buffs.each_with_index{|b,i| bf.push([i,b > 0 ? :up : :down]) if b != 0}
  95.       a += bf
  96.       a += Array.new(col_max - a.size){nil} if col_max > a.size
  97.       r += a
  98.     }
  99.   end

  100.   def description
  101.     return "" unless @data[index]
  102.     if @data[index].is_a?(Array)
  103.       return StateHelp::Buffs[@data[index]]
  104.     else
  105.       return StateHelp::States[@data[index].id]
  106.     end
  107.   end
  108.   def cursor_down(wrap = false)
  109.     return if @data.compact.empty?
  110.     loop do
  111.       select((index + col_max) % item_max)
  112.       break if @data[index]
  113.     end
  114.   end
  115.   def cursor_up(wrap = false)
  116.     return if @data.compact.empty?
  117.     loop do
  118.       select((index - col_max + item_max) % item_max)
  119.       break if @data[index]
  120.     end
  121.   end
  122.   def cursor_right(wrap = false)
  123.     return if @data.compact.empty?
  124.     loop do
  125.       select((index + 1) % item_max)
  126.       break if @data[index]
  127.     end
  128.   end
  129.   def cursor_left(wrap = false)
  130.     return if @data.compact.empty?
  131.     loop do
  132.       select((index - 1 + item_max) % item_max)
  133.       break if @data[index]
  134.     end
  135.   end
  136.   def smooth_select
  137.     return select(0) if @data.compact.empty?
  138.     @data.each_with_index{|d,i|
  139.       if d
  140.         select(i)
  141.         return
  142.       end
  143.     }
  144.   end
  145. end

  146. class Window_ActorCommand < Window_Command
  147.   alias _ex_state_make_command_list make_command_list
  148.   def make_command_list
  149.     _ex_state_make_command_list
  150.     add_command("状态",  :state)
  151.   end
  152. end

  153. class Scene_Battle < Scene_Base
  154.   alias _ex_state_create_all_windows create_all_windows
  155.   def create_all_windows
  156.     _ex_state_create_all_windows
  157.     create_state_window
  158.   end
  159.   alias _ex_state_create_actor_command_window create_actor_command_window
  160.   def create_actor_command_window
  161.     _ex_state_create_actor_command_window
  162.     @actor_command_window.set_handler(:state, method(:command_state))
  163.   end

  164.   def create_state_window
  165.     @state_window = Window_State.new(@help_window)
  166.     @state_window.set_handler(:ok,  method(:command_state_cancel))
  167.     @state_window.set_handler(:cancel, method(:command_state_cancel))
  168.     @state_window.unselect
  169.   end

  170.   def command_state
  171.     @actor_command_window.deactivate
  172.     @state_window.refresh
  173.     @state_window.open.activate.smooth_select
  174.     @help_window.show
  175.   end


  176.   def command_state_cancel
  177.     @state_window.deactivate.close.unselect
  178.     @actor_command_window.activate
  179.     @help_window.hide
  180.   end
  181. end
复制代码




这是装备说明增强脚本

  1. #encoding:utf-8
  2. #==============================================================================
  3. # ■ 装备说明增强 By wyongcan
  4. #==============================================================================
  5. module Equipplus
  6.   CODE ={
  7.     11 => "属性抗性",
  8.     12 => "弱化抗性",
  9.     13 => "状态抗性",
  10.     14 => "状态免疫",
  11.     21 => "普通能力",
  12.     22 => "添加能力",
  13.     23 => "特殊能力",
  14.     31 => "攻击附带属性",
  15.     32 => "攻击附带状态",
  16.     33 => "修正攻击速度",
  17.     34 => "添加攻击次数",
  18.     41 => "添加技能类型",
  19.     42 => "禁用技能类型",
  20.     43 => "添加技能",
  21.     44 => "禁用技能",
  22.     51 => "可装备武器类型",
  23.     52 => "可装备护甲类型",
  24.     53 => "固定装备",
  25.     54 => "禁用装备",
  26.     55 => "装备风格",
  27.     61 => "添加行动次数",
  28.     62 => "特殊标志",
  29.     63 => "消失效果",
  30.     64 => "队伍能力"}
  31.   #特殊标志
  32.   FLAG ={
  33.                 0 => "自动战斗",
  34.                 1 => "擅长防御",
  35.                 2 => "保护弱者",
  36.                 3 => "特技专注"}
  37.   #普通能力
  38.         PARAM ={
  39.                 0 => "最大HP",
  40.                 1 => "最大MP",
  41.                 2 => "物理攻击",
  42.                 3 => "物理防御",
  43.                 4 => "魔法攻击",
  44.                 5 => "魔法防御",
  45.                 6 => "速 度 值",
  46.                 7 => "敏 捷 值"}
  47.   #添加能力
  48.         XPARAM ={
  49.                 0 => "物理命中几率:",
  50.                 1 => "物理闪避几率:",
  51.                 2 => "必杀几率:",
  52.                 3 => "必杀闪避几率:",
  53.                 4 => "魔法闪避几率:",
  54.                 5 => "魔法反射几率:",
  55.                 6 => "物理反击几率:",
  56.                 7 => "体力值再生速度:",
  57.                 8 => "魔力值再生速度:",
  58.                 9 => "特技值再生速度:"}
  59.   #特殊能力
  60.         SPARAM ={
  61.                 0 => "受到攻击的几率",
  62.                 1 => "防御效果比率",
  63.                 2 => "恢复效果比率",
  64.                 3 => "药理知识",
  65.                 4 => "MP消费率",
  66.                 5 => "TP消耗率",
  67.                 6 => "物理伤害加成",
  68.                 7 => "魔法伤害加成",
  69.                 8 => "地形伤害加成",
  70.                 9 => "经验获得加成"}
  71.         @队伍能力 ={
  72.                 0 => "遇敌几率减半",
  73.                 1 => "随机遇敌无效",
  74.                 2 => "敌人偷袭无效",
  75.                 3 => "先制攻击几率上升",
  76.                 4 => "获得金钱数量双倍",
  77.                 5 => "物品掉落几率双倍"}
  78.   def self.equiphelpready
  79.     @状态 = {}
  80.     @武器类型 = {}
  81.     @防具类型 = {}
  82.     @属性 = {}
  83.     $data_states.each{|x| @状态[x.id] = x.name if x != nil}
  84.     elements = $data_system.elements
  85.     weapon_types = $data_system.weapon_types
  86.     armor_types = $data_system.armor_types
  87.     elements.each_with_index{|x,y| @属性[y] = x if x != ""}
  88.     weapon_types.each_with_index{|x,y| @武器类型[y] = x if x != ""}
  89.     armor_types.each_with_index{|x,y| @防具类型[y] = x if x != ""}
  90.   end
  91.   def self.getequiphelp(equip)
  92.     help = ""
  93.     param = []
  94.     equip.params.each_with_index{|x,y| param.push([PARAM[y],x])}
  95.     param = param.select{|x| x[1] != 0}
  96.     param.each{|x| help += x[0] + ":" + x[1].to_int.to_s + "\n"}
  97.     features = equip.features
  98.     features.select{|x| x.code == 55}.each{|x| help += CODE[x.code] + ":双持武器" + "\n"}
  99.     features.select{|x| x.code == 11}.each{|x| help += CODE[x.code] + ":" + @属性[x.data_id] + "*" + x.value.to_s + "\n"}
  100.     features.select{|x| x.code == 12}.each{|x| help += CODE[x.code] + ":" + PARAM[x.data_id] + "*" + x.value.to_s + "\n"}
  101.     features.select{|x| x.code == 13}.each{|x| help += CODE[x.code] + ":" + @状态[x.data_id] + "*" + x.value.to_s + "\n"}
  102.     features.select{|x| x.code == 14}.each{|x| help += CODE[x.code] + ":" + @状态[x.data_id] + "\n"}
  103.     features.select{|x| x.code == 31}.each{|x| help += CODE[x.code] + ":" + @属性[x.data_id] + "\n"}
  104.     features.select{|x| x.code == 32}.each{|x| help += CODE[x.code] + ":" + @状态[x.data_id] + "+" + x.value.to_s + "\n"}
  105.     features.select{|x| x.code == 33}.each{|x| help += CODE[x.code] + ":" + x.value.to_s + "\n"}
  106.     features.select{|x| x.code == 34}.each{|x| help += CODE[x.code] + ":" + x.value.to_s + "\n"}
  107.     features.select{|x| x.code == 41}.each{|x| help += CODE[x.code] + ":" + (x.data_id == 1 ? "特技" : "魔法")  + "\n"}
  108.     features.select{|x| x.code == 42}.each{|x| help += CODE[x.code] + ":" + (x.data_id == 1 ? "特技" : "魔法")  + "\n"}
  109.     features.select{|x| x.code == 43}.each{|x| help += CODE[x.code] + ":" + $data_skills[x.data_id].name  + "\n"}
  110.     features.select{|x| x.code == 44}.each{|x| help += CODE[x.code] + ":" + $data_skills[x.data_id].name  + "\n"}
  111.     features.select{|x| x.code == 51}.each{|x| help += CODE[x.code] + ":" + @武器类型[x.data_id]  + "\n"}
  112.     features.select{|x| x.code == 52}.each{|x| help += CODE[x.code] + ":" + @防具类型[x.data_id]  + "\n"}
  113.     features.select{|x| x.code == 61}.each{|x| help += CODE[x.code] + ":" + x.value.to_s  + "\n"}
  114.     features.select{|x| x.code == 62}.each{|x| help += CODE[x.code] + ":" + FLAG[x.data_id]  + "\n"}
  115.     features.select{|x| x.code == 64}.each{|x| help += CODE[x.code] + ":" + @队伍能力[x.data_id]  + "\n"}
  116.     featuresparam = []
  117.     featuresparam.push features.select{|x| x.code == 21}
  118.     featuresparam.push features.select{|x| x.code == 22}
  119.     featuresparam.push features.select{|x| x.code == 23}
  120.     featuresparam[0].each{|x| help += PARAM[x.data_id] + "*" + x.value.to_s + "\n"}
  121.     featuresparam[1].each{|x| help += XPARAM[x.data_id] + x.value.to_s + "\n"}
  122.     featuresparam[2].each{|x| help += SPARAM[x.data_id] + "*" + x.value.to_s + "\n"}
  123.   # ======== 改动部分 ========
  124.     if equip.strongto > 0
  125.       strong = nil
  126.       if equip.is_a?(RPG::Weapon)
  127.         strong = $data_weapons[equip.strongto]
  128.       elsif equip.is_a?(RPG::Armor)
  129.         strong = $data_armors[equip.strongto]
  130.       end
  131.       help += "可强化到 " + strong.name + "\n"
  132.     end
  133.   # ======== 改动部分 ========
  134.     help
  135.   end
  136.   def self.getline(text,maxtext)
  137.     xtext = []
  138.     line = 0
  139.     text.each_line{|x| xtext.push x.sub(/\n/){}}
  140.     xtext.each{|x| x.size % maxtext != 0 ? line += x.size / maxtext + 1 : line += x.size / maxtext}
  141.     line
  142.   end
  143. end
  144. #==============================================================================
  145. # ■ Window_Help
  146. #------------------------------------------------------------------------------
  147. #  显示特技和物品等的说明、以及角色状态的窗口
  148. #==============================================================================

  149. class Window_Help2 < Window_Base
  150.   #--------------------------------------------------------------------------
  151.   # ● 初始化对象
  152.   #--------------------------------------------------------------------------
  153.   def initialize(line_number = 0)
  154.     super(0, 0, 210, 0)
  155.     self.z = 150
  156.     contents.font.size = 14
  157.     hide
  158.   end
  159.   #--------------------------------------------------------------------------
  160.   # ● 设置内容
  161.   #--------------------------------------------------------------------------
  162.   def set_text(text)
  163.       @text = text
  164.       refresh
  165.   end
  166.   #--------------------------------------------------------------------------
  167.   # ● 清除
  168.   #--------------------------------------------------------------------------
  169.   def clear
  170.     set_text("")
  171.   end
  172.   #--------------------------------------------------------------------------
  173.   # ● 更新帮助位置
  174.   #--------------------------------------------------------------------------
  175.   def uppos(index,rect,window)
  176.     self.height = fitting_height2(Equipplus.getline(@xtext,13))
  177.     create_contents
  178.     contents.font.size = 14
  179.     rect.x -= window.ox
  180.     rect.y -= window.oy
  181.     ax = rect.x + rect.width + 10
  182.     ax = rect.x - self.width + 10 if ax + self.width > window.width + 10
  183.     ax += window.x
  184.     ax = 0 if ax < 0
  185.     ay = rect.y + rect.height
  186.     ay = rect.y - self.height if ay + self.height > window.height
  187.     ay += window.y
  188.     ay = 0 if ay < 0
  189.     self.x = ax
  190.     self.y = ay
  191.     set_text(@xtext)
  192.     show
  193.   end
  194.   #--------------------------------------------------------------------------
  195.   # ● 设置物品
  196.   #     item : 技能、物品等
  197.   #--------------------------------------------------------------------------
  198.   def set_item(item)
  199.     if item == nil
  200.       set_text("")
  201.       return
  202.     end
  203.     @xtext = ""
  204.     @xtext = "名称:" + item.name + "\n"
  205.     @xtext += "介绍:" + item.description + "\n"
  206.    # @xtext += "价格:" + item.price.to_s + "\n" if item.is_a?(RPG::EquipItem) || item.is_a?(RPG::Item)
  207.     @xtext += Equipplus.getequiphelp(item) if item.is_a?(RPG::EquipItem)
  208.     @xtext = @xtext[0,@text.size - 2] if @xtext[@xtext.size - 2,2] == "\n"
  209.   end
  210.   #--------------------------------------------------------------------------
  211.   # ● 刷新
  212.   #--------------------------------------------------------------------------
  213.   def refresh
  214.     contents.clear
  215.     hide if @text == ""
  216.     draw_text_ex2(4, 0, @text,width,40,false)
  217.   end
  218. end
  219. class Window_Base < Window
  220.   #--------------------------------------------------------------------------
  221.   # ● 计算窗口显示指定行数时的应用高度2*************************
  222.   #--------------------------------------------------------------------------
  223.   def fitting_height2(line_number)
  224.     line_number * contents.font.size + standard_padding * 2
  225.   end
  226. #~ draw_text_ex的增强,使其可以自动换行  原作者:叶子 修改:wyongcan
  227.   #--------------------------------------------------------------------------
  228.   # ● 绘制带有控制符的文本内容
  229.   #   如果传递了width参数的话,会自动换行
  230.   #--------------------------------------------------------------------------
  231.   def draw_text_ex2(x, y, text, width = nil,textwidth = nil,normalfont = true)
  232.     reset_font_settings if normalfont == true
  233.     text = convert_escape_characters(text)
  234.     pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
  235.     if width != nil
  236.       pos[:height] = contents.font.size
  237.       pos[:width] = width
  238.       pos[:textwidth] = textwidth
  239.     end
  240.     process_character(text.slice!(0, 1), text, pos) until text.empty?
  241.   end
  242.   #--------------------------------------------------------------------------
  243.   # ● 文字的处理
  244.   #     c    : 文字
  245.   #     text : 绘制处理中的字符串缓存(字符串可能会被修改)
  246.   #     pos  : 绘制位置 {:x, :y, :new_x, :height}
  247.   #--------------------------------------------------------------------------
  248.   def process_character(c, text, pos)
  249.     case c
  250.     when "\r"   # 回车
  251.       return
  252.     when "\n"   # 换行
  253.       process_new_line(text, pos)
  254.     when "\f"   # 翻页
  255.       process_new_page(text, pos)
  256.     when "\e"   # 控制符
  257.       process_escape_character(obtain_escape_code(text), text, pos)
  258.     else        # 普通文字
  259.       pos[:textwidth] == nil ? text_width = text_size(c).width : text_width = pos[:textwidth]
  260.       if pos[:width] != nil && pos[:x] - pos[:new_x] + text_width > pos[:width]
  261.         process_new_line(text, pos)
  262.       end
  263.       process_normal_character(c, pos)
  264.     end
  265.   end
  266. end

  267. class Window_ItemList < Window_Selectable
  268.   #--------------------------------------------------------------------------
  269.   # ● 更新帮助内容
  270.   #--------------------------------------------------------------------------
  271.   def update_help
  272.     @help_window.set_item(item)
  273.     @help_window.uppos(index,item_rect(index),self) if index != -1 && item != nil
  274.   end
  275. end

  276. class Window_SkillList < Window_Selectable
  277.   #--------------------------------------------------------------------------
  278.   # ● 更新帮助内容
  279.   #--------------------------------------------------------------------------
  280.   def update_help
  281.     @help_window.set_item(item)
  282.     @help_window.uppos(index,item_rect(index),self) if index != -1 && item != nil
  283.   end
  284. end

  285. class Window_ShopBuy < Window_Selectable
  286.   #--------------------------------------------------------------------------
  287.   # ● 更新帮助内容
  288.   #--------------------------------------------------------------------------
  289.   def update_help
  290.     @help_window.set_item(item) if @help_window
  291.     @help_window.uppos(index,item_rect(index),self) if index != -1 && item != nil && @help_window
  292.     @status_window.item = item if @status_window
  293.   end
  294. end

  295. class Window_EquipSlot < Window_Selectable
  296.   #--------------------------------------------------------------------------
  297.   # ● 更新帮助内容
  298.   #--------------------------------------------------------------------------
  299.   def update_help
  300.     super
  301.     @help_window.set_item(item) if @help_window
  302.     @help_window.uppos(index,item_rect(index),self) if index != -1 && item != nil && @help_window
  303.     @status_window.set_temp_actor(nil) if @status_window
  304.   end
  305. end

  306. class Scene_Shop < Scene_MenuBase
  307.         alias on_sell_ok_old on_sell_ok
  308.         def on_sell_ok
  309.                 on_sell_ok_old
  310.                 @help_window.hide
  311.         end
  312.         alias on_buy_ok_old on_buy_ok
  313.         def on_buy_ok
  314.                 on_buy_ok_old
  315.                 @help_window.hide
  316.         end
  317.         alias on_number_ok_old on_number_ok
  318.         def on_number_ok
  319.                 on_number_ok_old
  320.     @help_window.refresh
  321.                 @help_window.show
  322.         end
  323.         alias on_number_cancel_old on_number_cancel
  324.         def on_number_cancel
  325.                 on_number_cancel_old
  326.     @help_window.refresh
  327.                 @help_window.show
  328.         end
  329. end

  330. class Scene_Title < Scene_Base
  331.   alias start_old start
  332.   def start
  333.     start_old
  334.     Equipplus.equiphelpready
  335.   end
  336. end

  337. class Scene_ItemBase < Scene_MenuBase
  338.         alias old_on_actor_cancel on_actor_cancel
  339.   def on_actor_cancel
  340.     old_on_actor_cancel
  341.         @help_window.refresh
  342.   end
  343.         alias old_on_actor_ok on_actor_ok
  344.   def on_actor_ok
  345.     old_on_actor_ok
  346.         @help_window.refresh
  347.   end
  348. end

  349. class Window_Base < Window
  350.         alias old_process_new_line process_new_line
  351.         def process_new_line(text, pos)
  352.     old_process_new_line(text, pos)
  353.                 pos[:height] = contents.font.size if pos[:width] != nil
  354.         end
  355. end

  356. class Scene_MenuBase < Scene_Base
  357.   def create_help_window
  358.     @help_window = Window_Help2.new
  359.     @help_window.viewport = @viewport
  360.   end
  361. end
  362. class Scene_Battle < Scene_Base
  363.   def create_help_window
  364.     @help_window = Window_Help2.new
  365.     @help_window.visible = false
  366.   end
  367. end
复制代码




请问该如何解决呢?

点评

两天了,还是没人呀…这个难道做不到吗  发表于 2017-8-12 16:48
鸽子本鸽
梦石
0
星屑
4293
在线时间
789 小时
注册时间
2015-6-27
回帖
62

开拓者

 楼主| 发表于 2017-8-11 00:27:41 | 显示全部楼层
求助呀,没人吗…{:2_271:}
鸽子本鸽
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部