じ☆ve冰风 发表于 2026-8-2 09:50:12

Gremory Map Name Manager

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

Spoiler
https://i.imgur.com/jfqXZJl.png



https://i.imgur.com/rs6GgcU.png






How to Use

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

Script

Spoiler: Code                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).


本贴来自国际rpgmaker官方论坛作者:Ebanyle处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/gremory-map-name-manager.108357/
页: [1]
查看完整版本: Gremory Map Name Manager