Gremory Map Name Manager

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Ebanyle, Apr 25, 2019.

  1. Ebanyle

    Ebanyle Veteran Veteran

    Messages:
    264
    Likes Received:
    149
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMVXA
    Gremory Map Name Manager 1.3
    by MateusDxD
    Original Post

    Introduction
    This script allows modifications to be done in the Map Name Window, such as fade speed, color, etc.

    Features
    - Alter fade in and fade out speed;
    - Alter the window width;
    - Alter the window color;
    - Alter the window position.

    Screenshots

    [​IMG]

    [​IMG]


    How to Use

    Paste the code below Materials but above Main.
    Adjust the configurations at line 16 as you see fitting.

    Script

    Code:
    #===============================================================================
    # Gremory Map Name Manager
    #-------------------------------------------------------------------------------
    # Author: MateusDxD
    # Version: 1.3
    # Source: https://centrorpg.com/index.php?topic=21713.msg157561
    #-------------------------------------------------------------------------------
    # This script allows you to better configure the Map Exhibition Window
    #-------------------------------------------------------------------------------
    # Final thanks to Enterbrain, for the Windows_MapName class
    # Centro RPG Maker, where I provided the script
    # Script is free for use with as long credit is properly given :)
    #===============================================================================
    class Window_MapName < Window_Base
    #===============================================================================
    # Configuration
    #===============================================================================
    module Gremory_MapName
     
      # Defines Fade In and Fade Out speed
      FADE = 16  # Higher value, faster appearition. Setting to 0 erases the window
     
      # Defines width
      WIDTH = 240
    
      # Define background color 1
      BACKGROUND_COLOR1 = Color.new(0, 0, 0, 190) #(red, green, blue, alpha)
     
      # Define background color 2
      BACKGROUND_COLOR2 = Color.new(0, 0, 0, 0) #(red, green, blue, alpha)
     
      # Define X position (Horizontal)
      X = 0
     
      # Defines Y position (Vertical)
      Y = 0
    
    end
    #===============================================================================
      #-----------------------------------------------------------------------------
      # * Update Fade In
      #-----------------------------------------------------------------------------
      def update_fadein
        self.contents_opacity += Gremory_MapName::FADE
      end
      #-----------------------------------------------------------------------------
      # * Update Fade Out
      #-----------------------------------------------------------------------------
      def update_fadeout
        self.contents_opacity -= Gremory_MapName::FADE
      end
      #-----------------------------------------------------------------------------
      # * Update window width
      #-----------------------------------------------------------------------------
      def window_width
        return Gremory_MapName::WIDTH
      end
      #-----------------------------------------------------------------------------
      # * Acquisition of background color 2
      #-----------------------------------------------------------------------------
      def back_color1
        Gremory_MapName::BACKGROUND_COLOR1
      end
      #-----------------------------------------------------------------------------
      # * Acquisition of background color 2
      #-----------------------------------------------------------------------------
      def back_color2
        Gremory_MapName::BACKGROUND_COLOR2
      end
      #-----------------------------------------------------------------------------
      # * Position
      #-----------------------------------------------------------------------------
      def initialize
        super(Gremory_MapName::X, Gremory_MapName::Y, window_width, fitting_height(1))
        self.opacity = 0
        self.contents_opacity = 0
        @show_count = 0
        refresh
      end
    end
    

    Credit and Thanks
    - MatheusDxD for creation of the script
    - Enterbrain for class Window_MapName
    - Centro RPG Maker for original post of the script
    - Raizen for helping in compatibility

    Author's Notes
    Usage is for free commercially and non-commercially as long as you credit the author (MatheusDxD).
     
    Last edited: Apr 26, 2019
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,967
    Likes Received:
    10,659
    First Language:
    English
    Primarily Uses:
    RMVXA
    It might help if you edited the usage line to state explicitly if this can or cannot be used in a commercial game, otherwise you are likely to be repeatedly asked.
     
    #2
  3. Ebanyle

    Ebanyle Veteran Veteran

    Messages:
    264
    Likes Received:
    149
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMVXA
    The only thing the author said was that, so I suppose that it is free both commercially and non-commercially.
    I'll edit it and keep an eye in any modifications in the terms
     
    #3

Share This Page