じ☆ve冰风 发表于 2026-8-2 08:49:17

Fade in Short Text

Made for a request here.

This script make uses of the map name window and let you display short texts with it that fades in and out just like the map names.

So you may use it to display achievements, chapters or any other short texts you like.

http://s13.postimg.org/mcdv678d3/quick_text.png

Features:

Short text that fades in and out

How to use:

Paste this script below Material and above Main

Use this script call to display text on screen:

quick_text("Your Text Here")Compatibility:

This script overwrites how the map name window works. If you have other custom scripts that overwrite how the map name window works, there can be conflicts.

Terms of Use:

Free for both commercial and non-commercial.

Script:

Spoiler                Code:       
#==============================================================================# ■ Meow Face Display Quick Text#------------------------------------------------------------------------------# Display a quick text pop up in the Map window#==============================================================================# How to Use:# Paste this below Material and above Main# Use this script call to display the text on screen#     quick_text("your text here")#==============================================================================class Game_Map  attr_accessor :show_achievement  attr_accessor :achievement_text  alias meow_gm_achievement_init initialize  def initialize    meow_gm_achievement_init    @show_achievement = false    @achievement_text = "text"  end  def display_achievement_show    SceneManager.scene.show_achievement_text  end  alias meow_update_achievement_mn update  def update(main = false) #alias    meow_update_achievement_mn(main)     display_achievement_show if @show_achievement  endendclass Game_Interpreter  def quick_text(text)    $game_map.achievement_text = text    $game_map.show_achievement = true  endendclass Window_MapName < Window_Base  def refresh #overwrite    contents.clear    if $game_map.show_achievement == true      draw_background(contents.rect)      draw_text(contents.rect, $game_map.achievement_text, 1)      $game_map.show_achievement = false    else      unless $game_map.display_name.empty?        draw_background(contents.rect)        draw_text(contents.rect, $game_map.display_name, 1)      end    end  endendclass Scene_Map < Scene_Base  def show_achievement_text    @map_name_window.open  endend








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