设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 131|回复: 0

[转载发布] Speedy Input.repeat for Menu

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-8-1 17:52:18 | 显示全部楼层 |阅读模式
    Speedy Input.repeat for Menu+2011/12/25

    Creator name: Ru/むっくRu (Rutan) | (English Translation by tale)​


    Introduction
    A script that speeds up the scrolling in the menu. Also it can slow down if you want to.

    Features
    - Adjustable scrolling speed for menu

    For more details, see the item settings in the script. Despite how awful the item setting description, it's short though.

    Video

    https://www.youtube.com/embed/0fWPcncbZVU

    How to Use
    Paste this script above Main.

    Script link
    https://raw.githubusercontent.com/ovate/torigoya-rgss3/main/torigoya_SpeedyInput.rb

                    Code:       
    1. # coding: utf-8
    2. #===============================================================================
    3. # ■ Speedy Input.repeat for Menu for RGSS3
    4. #-------------------------------------------------------------------------------
    5. # 2012/01/02 Ru/むっくRu | English translation by tale 2017/02/16
    6. # License - Public Domain, allows commercial use and credit is not necessary
    7. #-------------------------------------------------------------------------------
    8. #  Input.repeat? Speeds up the intervals.
    9. #  (※Depends on the setting, you can slow down!)
    10. #
    11. #  ● Following features added
    12. #  Input.repeatEx?(key) …… Faster Input.repeat?
    13. #
    14. #  ● Following features changed
    15. #  Input.repeat?(key)   …… Faster than usual
    16. #
    17. #-------------------------------------------------------------------------------
    18. # 【Issues】
    19. #  Awful item setting description...
    20. #-------------------------------------------------------------------------------
    21. # 【Changelogs】
    22. # 2012/01/02 Function extended where it can be reflected on the base script upon usage.
    23. # 2011/12/25 Fixed an error that occurred after startup
    24. # 2011/12/21 Released
    25. #-------------------------------------------------------------------------------
    26. #===============================================================================
    27. # ● Item settings
    28. #==============================================================================
    29. module HZM_VXA
    30.   module InputRepeatEx
    31.     # First waiting time to second then repeat
    32.     # (Time: Start to finish.)
    33.     WAIT1 = 20
    34.     # Second waiting time after repeat
    35.     # (Time: Inbetween)
    36.     WAIT2 = 1
    37.    
    38.     # Do you want to replace the default Input.repeat with a faster repeat?
    39.     REPLACE_REPEAT_FLAG = true
    40.   end
    41. end
    42. #===============================================================================
    43. # ↑   Setup goes here   ↑
    44. # ↓  Script down there  ↓
    45. #===============================================================================
    46. module HZM_VXA
    47.   module InputRepeatEx
    48.     LIST = [:DOWN, :LEFT, :RIGHT, :UP, :A, :B, :C, :X, :Y, :Z, :L, :R, :SHIFT, :CTRL, :ALT, :F5, :F6, :F7, :F8, :F9]
    49.   end
    50. end
    51. module Input
    52.   @hzm_vxa_inputrepeatex_repeatex_cnt  = {}
    53.   @hzm_vxa_inputrepeatex_repeatex_flag = {}
    54.   HZM_VXA::InputRepeatEx::LIST.each do |key|
    55.     @hzm_vxa_inputrepeatex_repeatex_cnt[key] = 0
    56.     @hzm_vxa_inputrepeatex_repeatex_flag[key] = false
    57.   end
    58. end
    59. class << Input
    60.   #-----------------------------------------------------------------------------
    61.   # ● Update
    62.   #-----------------------------------------------------------------------------
    63.   alias hzm_vxa_inputrepeatex_update update
    64.   def update
    65.     hzm_vxa_inputrepeatex_update
    66.     HZM_VXA::InputRepeatEx::LIST.each do |key|
    67.       if trigger?(key)
    68.         @hzm_vxa_inputrepeatex_repeatex_cnt[key] = HZM_VXA::InputRepeatEx::WAIT1
    69.         @hzm_vxa_inputrepeatex_repeatex_flag[key] = true
    70.       elsif press?(key)
    71.         if @hzm_vxa_inputrepeatex_repeatex_cnt[key] <= 0
    72.           @hzm_vxa_inputrepeatex_repeatex_cnt[key] = HZM_VXA::InputRepeatEx::WAIT2
    73.           @hzm_vxa_inputrepeatex_repeatex_flag[key] = true
    74.         else
    75.           @hzm_vxa_inputrepeatex_repeatex_cnt[key] -= 1
    76.           @hzm_vxa_inputrepeatex_repeatex_flag[key] = false
    77.         end
    78.       else
    79.         @hzm_vxa_inputrepeatex_repeatex_cnt[key] = 0
    80.         @hzm_vxa_inputrepeatex_repeatex_flag[key] = false
    81.       end
    82.     end
    83.   end
    84.   #-----------------------------------------------------------------------------
    85.   # ● Speed repeat
    86.   #-----------------------------------------------------------------------------
    87.   def repeatEx?(key)
    88.     @hzm_vxa_inputrepeatex_repeatex_flag[key]
    89.   end
    90.   #-----------------------------------------------------------------------------
    91.   # ● repeat?(Redefined)
    92.   #-----------------------------------------------------------------------------
    93.   if HZM_VXA::InputRepeatEx::REPLACE_REPEAT_FLAG
    94.     def repeat?(key)
    95.       repeatEx?(key)
    96.     end
    97.   end
    98. end
    99. # When the base script is present, repeatEX is supported
    100. if defined?(HZM_VXA::Input)
    101.   module HZM_VXA
    102.     module Input
    103.       def self.wait1
    104.         HZM_VXA::InputRepeatEx::WAIT1
    105.       end
    106.       def self.wait2
    107.         HZM_VXA::InputRepeatEx::WAIT2
    108.       end
    109.     end
    110.   end
    111. end
    复制代码


    Credit and Thanks
    - Original Author: Rutan
    - English translation: tale

    License - Public Domain, this means commercial use is allow and credit is not necessary

    Source
    https://torigoya.hatenadiary.jp/entry/20111220/repeat


    本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/speedy-input-repeat-for-menu.74972/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-18 08:56 , Processed in 0.128393 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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