Project1

标题: 装备栏怎么把QW键切换人物改成上下翻页 [打印本页]

作者: 间桐樱    时间: 2019-6-8 11:08
标题: 装备栏怎么把QW键切换人物改成上下翻页
本帖最后由 VIPArcher 于 2022-6-9 09:00 编辑

咱设定了好多项链戒指之类的插槽,导致装备栏很长,QW键默认是切换人物,怎么能更改成QW键上下翻页呢
PS:咱不确定下边的代码是不是设定按键,只是按照翻页、装备搜索出来的QAQ
RUBY 代码复制
  1. def create_command_window
  2.     wx = @status_window.width
  3.     wy = @help_window.height
  4.     ww = Graphics.width - @status_window.width
  5.     @command_window = Window_EquipCommand.new(wx, wy, ww)
  6.     @command_window.viewport = @viewport
  7.     @command_window.help_window = @help_window
  8.     @command_window.set_handler(:equip,    method(:command_equip))
  9.     @command_window.set_handler(:optimize, method(:command_optimize))
  10.     @command_window.set_handler(:clear,    method(:command_clear))
  11.     @command_window.set_handler(:cancel,   method(:return_scene))
  12.     @command_window.set_handler(:pagedown, method(:next_actor))
  13.     @command_window.set_handler(:pageup,   method(:prev_actor))
  14.   end
  15.   #--------------------------------------------------------------------------
  16.   # ●
  17.   #--------------------------------------------------------------------------
  18.   def create_slot_window
  19.     wx = @status_window.width
  20.     wy = @command_window.y + @command_window.height
  21.     ww = Graphics.width - @status_window.width
  22.     @slot_window = Window_EquipSlot.new(wx, wy, ww)
  23.     @slot_window.viewport = @viewport
  24.     @slot_window.help_window = @help_window
  25.     @slot_window.status_window = @status_window
  26.     @slot_window.actor = @actor
  27.     @slot_window.set_handler(:ok,       method(:on_slot_ok))
  28.     @slot_window.set_handler(:cancel,   method(:on_slot_cancel))

作者: soulsaga    时间: 2019-6-8 16:17
装备栏很长?应该不会吧?默认就不会..截个图看看..




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