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

[转载发布] Hammy - Window Shadows

[复制链接]
累计送礼:
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-3 15:18:21 | 显示全部楼层 |阅读模式
    Hammy - Window Shadows v1.04
    Add depth and visual polish to your game's UI with customizable window shadows




    Introduction

    This script provides a customizable shadow system for all windows in RPG Maker VX Ace. It automatically adds shadows behind windows to create depth and visual polish in your game's user interface.

    AI Disclaimer: Generative AI was used to refine the documentation and presentation of this script, as I am not a native English speaker. Additionally, AI was used to optimize the explicit z-index initialization part of the code, for naming conventions in some places and for general beautification of the script.



    Features

    Core Shadow Features

    • Automatic shadow creation for all windows
    • Runtime shadow enable/disable via Game_System integration
    • Window exclusion system for selective shadow application
    • Explicit z-index management for proper shadow layering

    Customization System

    • Per-window-class shadow configuration with custom graphics and settings
    • Per-window-type shadow configuration via FF9 Windowskin System integration
    • Configurable shadow offsets (horizontal and vertical positioning)
    • Shadow opacity scaling based on parent window transparency

    Technical Features

    • Automatic shadow property updates (position, size, openness, visibility)
    • Dynamic shadow recreation when system is re-enabled
    • Proper shadow disposal and cleanup on window termination



    Screenshots







    Script Calls

    The following script calls are available for use in events and other scripts.

    Shadow System Control

    $game_system.window_shadows = true
    Enables the window shadow system globally. All windows will display their configured shadows.

    $game_system.window_shadows = false
    Disables the window shadow system globally. All window shadows will be hidden and disposed.

    Examples
                    Ruby:       
    1. # Enable window shadows globally
    2. $game_system.window_shadows = true
    3. # Disable window shadows globally
    4. $game_system.window_shadows = false
    复制代码




    Usage

    This section explains how to prepare windowskin graphics for use as shadows.

    Shadow Windowskin Preparation
    Shadow windowskins are modified versions of standard RPG Maker VX Ace windowskin files. Windowskins are 128x128 pixels in size.


    • Step 1: Start with your standard windowskin file (128x128 pixels)
    • Step 2: Keep only the upper-right quadrant (x: 64-128, y: 0-64)
    • This section contains the window border graphics. Everything else should be removed or made transparent.
    • Step 3: Remove the top and left border segments
    • Delete the upper portion of the window frame. Delete the left portion of the window frame. Delete the scroll arrows. Keep only the bottom and right border segments.
    • Step 4: The result should show only the lower-right corner and edges
    • This creates the shadow effect when offset behind the main window.
    • Step 5: Place your prepared shadow windowskin files in the Graphics/System
    • Ensure they are referenced properly in the configuration settings.



    Configuration

    Edit the constants in the Hammy::WindowShadows module to configure the shadow windowskins, offsets, opacities, exclusions, and custom window mappings.

    Default Shadow Settings
    Configure the default shadow appearance for all windows in the game. These settings control the shadow windowskin, offsets, and opacity. Set windowskin to nil to disable shadows globally across the game.

    DEFAULT_SETTINGS
    Hash containing default shadow configuration.

    - windowskin: Shadow windowskin filename in Graphics/System folder.
    - offset_x: Horizontal shadow offset in pixels (positive = right).
    - offset_y: Vertical shadow offset in pixels (positive = down).
    - opacity: Shadow opacity value (0-255, where 255 is fully opaque).

    - Valid values: Hash with Symbol keys and specific value types
    - Default:{ :windowskin => "Window_Shadow", :offset_x => 3, ... }

    Example
                    Ruby:       
    1. DEFAULT_SETTINGS = {
    2.   :windowskin => "Window_Shadow",
    3.   :offset_x => 3,
    4.   :offset_y => 3,
    5.   :offset_width => 0,
    6.   :offset_height => 0,
    7.   :opacity => 120
    8. }
    复制代码


    Excluded Windows
    Configure window classes that should not display shadows. Add window class constants to exclude specific windows from the shadow system entirely.

    EXCLUDED_WINDOWS
    Array of window class constants to exclude.
    - Valid values: Array containing Window Class constants
    - Default:[Window_BattleLog]

    Example
                    Ruby:       
    1. EXCLUDED_WINDOWS = [Window_BattleLog]
    复制代码


    Explicit Z-Index Windows
    Configure window classes requiring explicit z-index assignment during initialization. Windows without explicit z-values can cause shadows to appear above other parent windows when shadows are re-enabled.

    EXPLICIT_Z_WINDOWS
    Array of window classes requiring explicit z.

    These windows will be assigned z = 200 during initialization.

    - Valid values: Array containing Window Class constants
    - Default:[Window_ChoiceList]

    Example
                    Ruby:       
    1. EXPLICIT_Z_WINDOWS = [Window_ChoiceList]
    复制代码


    Window Class Shadow Configuration
    Configure custom shadow settings for specific window classes. This allows you to override default shadow appearances for individual window types with per-class customization of graphics and offsets.

    WINDOWSKIN_MAP
    Hash mapping window class names to custom settings.

    - Format: "ClassName" => { :windowskin => "Name", :offset_x => x, :offset_y => y, :opacity => o }

    - Valid values: Hash with String keys and Hash values
    - Default:{ "Window_MenuCommand" => {...}, "Window_Gold" => {...} }

    Example
                    Ruby:       
    1. WINDOWSKIN_MAP = {
    2.    "Window_MenuCommand" => {
    3.      :windowskin => "Window_Shadow_Red",
    4.      :offset_x => 3,
    5.      :offset_y => 3,
    6.      :offset_width => 0,
    7.      :offset_height => 0,
    8.      :opacity => 80
    9.    },
    10.   "Window_Gold" => {
    11.     :windowskin => "Window_Shadow",
    12.     :offset_x => 0,
    13.     :offset_y => 0,
    14.     :offset_width => 3,
    15.     :offset_height => 3,
    16.     :opacity => 80
    17.   },
    18. }
    复制代码


    Window Type Shadow Map
    Configure custom shadow settings for window types when using the Hammy FF9 Windowskin System. This allows shadows to automatically match the visual style of window types defined in the system.

    WINDOW_TYPE_MAP
    Hash mapping window types to custom shadow settings.

    - Format: :window_type => { :windowskin => "Name", :offset_x => x, :offset_y => y, :opacity => o }
    - Available types: :default, :frame, :topbar, :help

    - Valid values: Hash with Symbol keys and Hash values
    - Default:{ :default => { ... }, :frame => { ... }, ... }

    Example
                    Ruby:       
    1. WINDOW_TYPE_MAP = {
    2.   :default => {
    3.     :windowskin => "Window_Shadow_Default",
    4.     :offset_x => 2,
    5.     :offset_y => 2,
    6.     :offset_width => 0,
    7.     :offset_height => 0,
    8.     :opacity => 120
    9.   },
    10.   :frame => {
    11.     :windowskin => "Window_Shadow_Frame",
    12.     :offset_x => 2,
    13.     :offset_y => 2,
    14.     :offset_width => 0,
    15.     :offset_height => 0,
    16.     :opacity => 120
    17.   },
    18.   :topbar => {
    19.     :windowskin => "Window_Shadow_Topbar",
    20.     :offset_x => 2,
    21.     :offset_y => 2,
    22.     :offset_width => 0,
    23.     :offset_height => 0,
    24.     :opacity => 120
    25.   },
    26.   :help => {
    27.     :windowskin => "Window_Shadow_Default",
    28.     :offset_x => 2,
    29.     :offset_y => 2,
    30.     :offset_width => 0,
    31.     :offset_height => 0,
    32.     :opacity => 120
    33.   },
    34. }
    复制代码




    Installation


    • Copy the script to an open slot below ▼ Materials but above ▼ Main
    • If using Hammy FF9 Windowskin System, place this script BELOW the Windowskin System script
    • Ensure your shadow windowskin graphics are saved in Graphics/System with the names defined in the configuration



    Compatibility

    This script is made strictly for RPG Maker VX Ace. It is highly unlikely that it will run with RPG Maker VX without adjusting.



    License

    MIT License - Free for commercial and non-commercial use.



    Credits

    No credits are required.



    Why VX Ace?

    You might wonder why I'm still making scripts for VX Ace instead of MV/MZ. The answer is simple: Ruby is pure beauty, while JavaScript is a terrible language. Ruby's elegant syntax, intuitive design, and expressive power make scripting a joy. JavaScript, on the other hand, is a chaotic mess of inconsistencies and quirks that I simply despise.

    I work with RPG Maker VX Ace for my own game project, and I share the scripts I create with the community. If you're still using VX Ace, you're in good company!



    Download

    Script:Download from GitHub
    Demo:Download from GitHub



    YEA System Options Addon

    This addon extends Yanfly's System Options script to include window shadow enable/disable functionality directly in the system options menu. Players can toggle window shadows on and off without using script calls.

    Features:

    • Window shadows toggle command in System Options menu
    • Automatic detection of Global System Option script presence
    • Configurable command insertion position via anchor system

    Requirements:

    Installation: Place this addon script BELOW both YEA-SystemOptions and the Window Shadows System.

    Download:Download from GitHub

    Spoiler: Addon Code
                    Ruby:       
    1. # encoding: utf-8
    2. #==============================================================================
    3. # ▼ Hammy - Window Shadows - YEA System Options Addon v1.01
    4. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    5. # -- Last Updated: 25.05.2026
    6. # -- Requires: Hammy Window Shadows v1.01+,
    7. #              YEA-SystemOptions v1.00
    8. # -- Optional: Theolized - Global System Option v1.00
    9. # -- Recommended: None
    10. # -- Credits: Yanfly (YEA-SystemOptions),
    11. #             Theo Allen (Global System Option)
    12. # -- License: MIT License
    13. #==============================================================================
    14. $imported ||= {}
    15. $imported[:hammy_window_shadows_system_options] = true
    16. #==============================================================================
    17. # ▼ Updates
    18. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    19. # 25.05.2026 - (v1.01) Applied new documentation conventions.
    20. #              Migrated configuration modules to Hammy::PascalCase naming.
    21. #
    22. # 23.10.2025 - (v1.00) Initial release.
    23. #
    24. #==============================================================================
    25. # ▼ Introduction
    26. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    27. # This addon extends the Yanfly System Options script to include window shadow
    28. # enable/disable functionality for the Hammy Window Shadows System. It
    29. # provides seamless integration with the system options menu, allowing players
    30. # to toggle window shadows directly from the game's options screen.
    31. #
    32. # The addon automatically detects whether Theo's Global System Option script is
    33. # present and adapts its save behavior accordingly, supporting both standard
    34. # save file storage and global options storage.
    35. #
    36. # -----------------------------------------------------------------------------
    37. # ► Core Integration Features
    38. # -----------------------------------------------------------------------------
    39. # ★ Window shadows toggle command in System Options menu
    40. # ★ Automatic detection of Global System Option script presence
    41. # ★ Configurable command insertion position via anchor system
    42. #
    43. #==============================================================================
    44. # ▼ Base Classes & Method Modifications
    45. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    46. # This script modifies the following RGSS3 base classes:
    47. #
    48. # -----------------------------------------------------------------------------
    49. # ► Game_System (Class)
    50. # -----------------------------------------------------------------------------
    51. # ★ Added Getters/Setters:
    52. #   - window_shadows
    53. #   - window_shadows=
    54. #
    55. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    56. # This script modifies the following 3rd party classes:
    57. #
    58. # -----------------------------------------------------------------------------
    59. # ► OptionData (Class)
    60. # -----------------------------------------------------------------------------
    61. # ★ Public Instance Variables:
    62. #   - window_shadows (attr_accessor)
    63. #
    64. # ★ Alias Methods:
    65. #   - initialize → window_shadows_optiondata_initialize
    66. #
    67. # -----------------------------------------------------------------------------
    68. # ► Window_SystemOptions (Class < Window_Command)
    69. # -----------------------------------------------------------------------------
    70. # ★ Alias Methods:
    71. #   - draw_item → window_shadows_win_sysopt_draw_item
    72. #   - cursor_change → window_shadows_win_sysopt_cursor_change
    73. #   - make_command_list → window_shadows_win_sysopt_make_comm_list
    74. #
    75. #==============================================================================
    76. # ▼ Instructions
    77. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    78. # To install this script, open up your script editor and copy/paste this script
    79. # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
    80. #
    81. # ★ This script requires Yanfly - YEA-SystemOptions and Hammy - Window Shadows
    82. #   and must be placed BELOW them.
    83. #
    84. # ★ If using Theolized Global System Option v1.0, window shadow preferences
    85. #   will be saved globally across all save files.
    86. #
    87. #==============================================================================
    88. # ▼ Compatibility
    89. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    90. # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
    91. # it will run with RPG Maker VX without adjusting.
    92. #
    93. #==============================================================================
    94. #==============================================================================
    95. # ** Window Shadows Configuration
    96. #------------------------------------------------------------------------------
    97. #  Configuration settings for the Window Shadows system.
    98. #==============================================================================
    99. module Hammy
    100.   module WindowShadows
    101.    
    102.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    103.     # - System Options Anchor -
    104.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    105.     # Configure the insertion position for the window shadows command in the
    106.     # System Options menu. The command will be inserted after the specified
    107.     # anchor command.
    108.     #
    109.     # WINDOW_SHADOWS_INSERT_ANCHOR: Symbol of the anchor command.
    110.     #   - Valid values: Symbol representing a command in System Options
    111.     #   - Default: :window_blu
    112.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    113.     WINDOW_SHADOWS_INSERT_ANCHOR = :window_blu
    114.    
    115.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    116.     # - Command Vocabulary -
    117.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    118.     # Configure the display text and help information for the window shadows
    119.     # toggle command in the System Options menu.
    120.     #
    121.     # WINDOW_SHADOWS_VOCAB: Hash containing command text and help description.
    122.     #   [0] = Command name, [1] = Off text, [2] = On text, [3] = Help text
    123.     #   - Valid values: Hash with Symbol key and Array of Strings
    124.     #   - Default: { :window_shadows => [...] }
    125.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    126.     WINDOW_SHADOWS_VOCAB = {
    127.       :window_shadows => ["Window Shadows", "Off", "On",
    128.                           "Enable or disable window shadows.\n" \
    129.                           "Shadows add visual depth to windows."
    130.                          ]
    131.     }
    132.    
    133.     #==========================================================================
    134.     # ▼ End of Documentation
    135.     #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    136.     # This marks the end of the documentation and configuration section.
    137.     # Everything below this point is the actual script implementation code.
    138.     #
    139.     # WARNING: Modifying the code below requires advanced Ruby and RGSS3
    140.     # knowledge. Improper changes may cause script errors, game crashes, or
    141.     # data corruption. Only edit if you understand the consequences and have
    142.     # backups of your project.
    143.     #==========================================================================
    144.    
    145.     #--------------------------------------------------------------------------
    146.     # * Merge Window Shadows Vocabulary                                [Custom]
    147.     #--------------------------------------------------------------------------
    148.     if $imported["YEA-SystemOptions"]
    149.       YEA::SYSTEM::COMMAND_VOCAB.merge!(WINDOW_SHADOWS_VOCAB)
    150.     end
    151.    
    152.   end # Hammy::WindowShadows
    153. end # Hammy
    154. #==============================================================================
    155. # ▼ Script Dependencies Check
    156. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    157. # This section checks for the presence of required companion scripts.
    158. # If any required scripts are missing, it displays an error message and exits.
    159. #==============================================================================
    160. unless $imported["YEA-SystemOptions"]
    161.   msgbox("YEA-SystemOptions v1.00 by Yanfly is required but not found!\n" \
    162.          "Please install the required script before using " \
    163.          "Window Shadows - System Options Addon.")
    164.   exit
    165. end
    166. unless $imported[:hammy_window_shadows]
    167.   msgbox("Hammy Window Shadows v1.00 is required but not found!\n" \
    168.          "Please install the required script before using " \
    169.          "Window Shadows - System Options Addon.")
    170.   exit
    171. end
    172. #==============================================================================
    173. # ** OptionData
    174. #------------------------------------------------------------------------------
    175. #  This class handles global system option data. It saves option preferences
    176. # globally across all save files when using Theo's Global System Option.
    177. #==============================================================================
    178. if $imported[:Theo_GlobalOption]
    179.   class OptionData
    180.     #--------------------------------------------------------------------------
    181.     # * Public Instance Variables                                      [Custom]
    182.     #--------------------------------------------------------------------------
    183.     attr_accessor :window_shadows
    184.    
    185.     #--------------------------------------------------------------------------
    186.     # * Alias Method Definitions                                       [Custom]
    187.     #--------------------------------------------------------------------------
    188.     alias_method :window_shadows_optiondata_initialize, :initialize
    189.    
    190.     #--------------------------------------------------------------------------
    191.     # * Object Initialization                                           [Alias]
    192.     #--------------------------------------------------------------------------
    193.     def initialize
    194.       window_shadows_optiondata_initialize
    195.       @window_shadows = true
    196.     end
    197.    
    198.   end # OptionData
    199. end # if $imported[:Theo_GlobalOption]
    200. #==============================================================================
    201. # ** Game_System
    202. #------------------------------------------------------------------------------
    203. #  This class handles system data. It saves the disable state of saving and
    204. # menus. Instances of this class are referenced by $game_system.
    205. #==============================================================================
    206. class Game_System
    207.   #--------------------------------------------------------------------------
    208.   # * Get Window Shadows Setting                                     [Custom]
    209.   #--------------------------------------------------------------------------
    210.   def window_shadows
    211.     if $imported[:Theo_GlobalOption]
    212.       return $option_data.window_shadows
    213.     else
    214.       return @window_shadows
    215.     end
    216.   end
    217.   
    218.   #--------------------------------------------------------------------------
    219.   # * Set Window Shadows Setting                                    [Custom]
    220.   #--------------------------------------------------------------------------
    221.   def window_shadows=(value)
    222.     if $imported[:Theo_GlobalOption]
    223.       $option_data.window_shadows = value
    224.       OptionData.save
    225.     else
    226.       @window_shadows = value
    227.     end
    228.   end
    229.   
    230. end # Game_System
    231. #==============================================================================
    232. # ** Window_SystemOptions
    233. #------------------------------------------------------------------------------
    234. #  This window displays system options on the options screen.
    235. #==============================================================================
    236. class Window_SystemOptions < Window_Command
    237.   #--------------------------------------------------------------------------
    238.   # * Alias Method Definitions                                       [Custom]
    239.   #--------------------------------------------------------------------------
    240.   alias_method :window_shadows_win_sysopt_draw_item, :draw_item
    241.   alias_method :window_shadows_win_sysopt_cursor_change, :cursor_change
    242.   alias_method :window_shadows_win_sysopt_make_comm_list, :make_command_list
    243.   
    244.   #--------------------------------------------------------------------------
    245.   # * Create Command List                                             [Alias]
    246.   #--------------------------------------------------------------------------
    247.   def make_command_list
    248.     window_shadows_win_sysopt_make_comm_list
    249.     inject_window_shadows_command
    250.   end
    251.   
    252.   #--------------------------------------------------------------------------
    253.   # * Inject Window Shadows Command                                  [Custom]
    254.   #--------------------------------------------------------------------------
    255.   def inject_window_shadows_command
    256.     anchor_index = @list.find_index { |item|
    257.       item[:symbol] == Hammy::WindowShadows::WINDOW_SHADOWS_INSERT_ANCHOR
    258.     }
    259.    
    260.     if anchor_index
    261.       insert_index = anchor_index + 1
    262.     else
    263.       insert_index = @list.size
    264.     end
    265.    
    266.     vocab = YEA::SYSTEM::COMMAND_VOCAB
    267.    
    268.     window_shadows_command = {
    269.       :name => vocab[:window_shadows][0],
    270.       :symbol => :window_shadows,
    271.       :enabled => true,
    272.       :ext => nil
    273.     }
    274.    
    275.     @list.insert(insert_index, window_shadows_command)
    276.     @help_descriptions[:window_shadows] = vocab[:window_shadows][3]
    277.   end
    278.   
    279.   #--------------------------------------------------------------------------
    280.   # * Draw Item                                                       [Alias]
    281.   #--------------------------------------------------------------------------
    282.   def draw_item(index)
    283.     if @list[index][:symbol] == :window_shadows
    284.       reset_font_settings
    285.       rect = item_rect(index)
    286.       contents.clear_rect(rect)
    287.       draw_window_shadows_toggle(rect, index, @list[index][:symbol])
    288.     else
    289.       window_shadows_win_sysopt_draw_item(index)
    290.     end
    291.   end
    292.   
    293.   #--------------------------------------------------------------------------
    294.   # * Draw Window Shadows Toggle                                     [Custom]
    295.   #--------------------------------------------------------------------------
    296.   def draw_window_shadows_toggle(rect, index, symbol)
    297.     name = @list[index][:name]
    298.     draw_text(0, rect.y, contents.width / 2, line_height, name, 1)
    299.    
    300.     enabled = $game_system.window_shadows
    301.    
    302.     dx = contents.width / 2
    303.     change_color(normal_color, !enabled)
    304.     option1 = YEA::SYSTEM::COMMAND_VOCAB[symbol][1]
    305.     draw_text(dx, rect.y, contents.width / 4, line_height, option1, 1)
    306.    
    307.     dx += contents.width / 4
    308.     change_color(normal_color, enabled)
    309.     option2 = YEA::SYSTEM::COMMAND_VOCAB[symbol][2]
    310.     draw_text(dx, rect.y, contents.width / 4, line_height, option2, 1)
    311.   end
    312.   
    313.   #--------------------------------------------------------------------------
    314.   # * Process Cursor Move                                             [Alias]
    315.   #--------------------------------------------------------------------------
    316.   def cursor_change(direction)
    317.     if current_symbol == :window_shadows
    318.       change_window_shadows_toggle(direction)
    319.     else
    320.       window_shadows_win_sysopt_cursor_change(direction)
    321.     end
    322.   end
    323.   
    324.   #--------------------------------------------------------------------------
    325.   # * Change Window Shadows Toggle                                   [Custom]
    326.   #--------------------------------------------------------------------------
    327.   def change_window_shadows_toggle(direction)
    328.     value = direction == :left ? false : true
    329.     current_case = $game_system.window_shadows
    330.    
    331.     $game_system.window_shadows = value
    332.    
    333.     Sound.play_cursor if value != current_case
    334.     draw_item(index)
    335.   end
    336.   
    337. end # Window_SystemOptions
    338. #==============================================================================
    339. #
    340. # ▼ End of File
    341. #
    342. #==============================================================================
    复制代码






    本贴来自国际rpgmaker官方论坛作者:buddysievers处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/hammy-window-shadows.180665/

    本帖子中包含更多资源

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

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-17 06:21 , Processed in 0.144849 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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