#============================================================================== # Center Aligned Title Screen's Option Text Script by Black Mage. # For: RPG Maker VX Ace # Version: 1.0 # # License: CC-BY 3.0 # https://burningwizard.wordpress.com/ #============================================================================== #============================================================================== # Changelog #============================================================================== # Version 1.0 # - Initial version. #============================================================================== #------------------------------------------------------------------------------ # * Beyond this is the sacred land of code. You need programming qualification # to delve deeper, or it'll cause many unnecessary problems. Proceed at your # own risk. #------------------------------------------------------------------------------ class Window_TitleCommand < Window_Command def item_rect_for_text(index) rect = item_rect(index) max_chc_wdth = text_size(command_name(index)).width center = (self.width - max_chc_wdth - (padding*2)) / 2 rect.x = center; rect.width -= 8; rect end end