- 累计送礼:
- 0 个
- 累计收礼:
- 1 个
TA的每日心情 | 开心 2026-7-12 04:10 |
|---|
签到天数: 209 天 连续签到: 2 天 [LV.7]常住居民III

管理员
  
- VIP
- 7
- 卡币
- 58883
- OK点
- 16
- 推广点
- 0
- 同能卷
- 50
- 积分
- 68848


|
This script add's a "game-version-text" to your title screen. It can be configured.
If you use it, please add "Evil95" to the credits. Thank you.
Updated to Version 2.2. Now you can save the version number in Variables.
Spoiler: Screenshots
Spoiler: RGSS3 Ruby: - #==============================================================================
- # Show Game Version on Title Screen
- # ----------------------------------------------------------------------------
- # Version 2.2E (19.06.2020)
- # By Evil95
- #==============================================================================
- # - for Major: Variable Single, Set, Script: SGVOTS::MAJOR
- # - for Minor: Variable Single , Set, Script:: SGVOTS::MINOR
- # - for Bufgix: Variable Single , Set, Script:: SGVOTS::BUGFIX
- #----------------------------------------------------------------------------
- # CONFIG START
- #----------------------------------------------------------------------------
- module SGVOTS
- # If true it shows the Text "Version: "
- VERSIONSTEXT = false
-
- # Here you can change the Text which is shown if the above is on true
- VERSIONTEXT = "Version:"
-
- # Here you can change the version number:
- MAJOR = "1"
- MINOR = "0"
- BUGFIX = "5"
- # If true, it will show the version with 3 numbers e.g.: 1.0.5
- BUGFIXANZEIGE = true
-
- # Here you can change the fontsize
- FONT_GROESSE = 16
-
- # If true the font is bold
- FETTE_FONT = true
-
- # If true the font has shadow
- FONT_SCHATTEN = true
-
- # Here you can change the font color
- FONT_FARBE = 255,255,255,255
-
- # Here you can change the font itself
- FONT_NAME = "Verdana"
-
- # Here you can change the position
- # 1 = Upper Left, 2 = Down Left, 3 = Upper Right, 4 = Down Right
- ORT = 4
- end
- #----------------------------------------------------------------------------
- # CONFIG END
- #----------------------------------------------------------------------------
- class Scene_Title
- alias :sgvots_create :create_background
- alias :sgvots_dispose :dispose_background
- def create_background
- sgvots_create
- $sgvots = Gameversion.new
- end
- def dispose_background
- sgvots_dispose
- $sgvots.dispose
- end
- end
- class Gameversion < Window_Base
- def initialize
- super(0, 0, 544, 416)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.opacity = 0
- refresh
- end
- def refresh
- self.contents.clear
- self.contents.font.name = SGVOTS::FONT_NAME
- self.contents.font.size = SGVOTS::FONT_GROESSE
- self.contents.font.color = Color.new(SGVOTS::FONT_FARBE[0],SGVOTS::FONT_FARBE[1],SGVOTS::FONT_FARBE[2],SGVOTS::FONT_FARBE[3])
- self.contents.font.shadow = SGVOTS::FONT_SCHATTEN
- self.contents.font.bold = SGVOTS::FETTE_FONT
- if SGVOTS::VERSIONSTEXT
- if SGVOTS::ORT == 1 #Oben Links
- if SVGOTS::BUGFIXANZEIGE
- self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
- else
- self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
- end
- end
- if SGVOTS::ORT == 2 #Unten Links
- if SGVOTS::BUGFIXANZEIGE
- self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
- else
- self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
- end
- end
- if SGVOTS::ORT == 3 #Oben rechts
- if SGVOTS::BUGFIXANZEIGE
- self.contents.draw_text(350, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
- else
- self.contents.draw_text(350, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
- end
- end
- if SGVOTS::ORT == 4 #Unten rechts
- if SGVOTS::BUGFIXANZEIGE
- self.contents.draw_text(350, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
- else
- self.contents.draw_text(350, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
- end
- end
- else
- if SGVOTS::ORT == 1 #Oben Links
- if SGVOTS::BUGFIXANZEIGE
- self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
- else
- self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
- end
- end
- if SGVOTS::ORT == 2 #Unten Links
- if SGVOTS::BUGFIXANZEIGE
- self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
- else
- self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
- end
- end
- if SGVOTS::ORT == 3 #Oben rechts
- if SGVOTS::BUGFIXANZEIGE
- self.contents.draw_text(446, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
- else
- self.contents.draw_text(446, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
- end
- end
- if SGVOTS::ORT == 4 #Unten rechts
- if SGVOTS::BUGFIXANZEIGE
- self.contents.draw_text(446, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
- else
- self.contents.draw_text(446, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
- end
- end
- end
- end
- end
复制代码
本贴来自国际rpgmaker官方论坛作者:Evil95处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址: https://forums.rpgmakerweb.com/threads/show-game-version-on-title-screen-v2-2e-by-evil95.122845/ |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|