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.
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.
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