Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- # #
- # V's Simple: #
- # Command Text Indent #
- # Version 0.1 #
- # #
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- # Written By: Vindaca #
- # Concept By: Lexietanium #
- # Last Edited: April 23, 2014 #
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- #==============================================================================#
- #------------------------------------------------------------------------------#
- # ** Disclaimer #
- #------------------------------------------------------------------------------#
- # #
- # This script was intended for Non-commercial use only, if you wish to use #
- # this script in a commercial game please PM me at which ever site you found #
- # this script. Either way please give me credit in your game script as the #
- # writer of this script, and send me a PM abuot the release of the game/demo. #
- # #
- #------------------------------------------------------------------------------#
- # ** How To Use #
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- # #
- # *This script is plug and play with some options below. #
- # #
- #------------------------------------------------------------------------------#
- # ** Updates / Version Notes #
- #------------------------------------------------------------------------------#
- # #
- # v0.1 #
- # ~=~=~=~ #
- # * This script does just like the title says. All of the command texts are #
- # indented once they are selected. #
- # #
- #------------------------------------------------------------------------------#
- #==============================================================================#
- #==============================================================================
- # ** V Menu Indent
- #------------------------------------------------------------------------------
- # This module manages customizable features and methods.
- #==============================================================================
- module V_Menu_Indent
- module Specs
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- # #
- # Start Customizable Area. #
- # #
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- # #
- # ONLY EDIT THE DESIGNATED AREAS. #
- # #
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- #=============================================================================
- # * Cursor Options
- #=============================================================================
- X_Cursor_Indent = 5
- Y_Cursor_Indent = -3
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- # #
- # DO NOT EDIT PAST THIS POINT UNLESS YOU KNOW WHAT YOUR DOING. #
- # #
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- end
- end #<--- End Module===========================================================
- #==============================================================================
- # ** Window_MenuCommand
- #------------------------------------------------------------------------------
- # This command window appears on the menu screen.
- #==============================================================================
- class Window_Command < Window_Selectable
- #--------------------------------------------------------------------------
- # * Include Module
- #--------------------------------------------------------------------------
- include V_Menu_Indent::Specs
- #--------------------------------------------------------------------------
- # * Open Window
- #--------------------------------------------------------------------------
- def open
- super
- refresh
- end
- #--------------------------------------------------------------------------
- # * Update Cursor
- #--------------------------------------------------------------------------
- def update_cursor
- super
- refresh
- end
- #--------------------------------------------------------------------------
- # * Aliasing Method: Get Rectangle for Drawing Item Text
- #--------------------------------------------------------------------------
- alias :wmcir452452475275 :item_rect_for_text
- #--------------------------------------------------------------------------
- # * Get Rectangle for Drawing Item Text
- #--------------------------------------------------------------------------
- def item_rect_for_text(index)
- if index == @index
- rect = item_rect(index)
- rect.x += 4 + X_Cursor_Indent
- rect.width -= 8 + X_Cursor_Indent
- rect
- else
- wmcir452452475275(index)
- end
- end
- end
- #==============================================================================
- # ** Window_HorzCommand
- #------------------------------------------------------------------------------
- # This is a command window for the horizontal selection format.
- #==============================================================================
- class Window_HorzCommand < Window_Command
- #--------------------------------------------------------------------------
- # * Aliasing Method: Get Rectangle for Drawing Item Text
- #--------------------------------------------------------------------------
- alias :whcirft3543532 :item_rect_for_text
- #--------------------------------------------------------------------------
- # * Get Rectangle for Drawing Item Text
- #--------------------------------------------------------------------------
- def item_rect_for_text(index)
- if index == @index
- rect = item_rect(index)
- rect.y += Y_Cursor_Indent
- rect
- else
- whcirft3543532(index)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment