设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 110|回复: 0

[转载发布] Show Game Version on Title Screen v2.2E by Evil95

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-8-2 14:23:00 | 显示全部楼层 |阅读模式
    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:       
    1. #==============================================================================
    2. # Show Game Version on Title Screen
    3. # ----------------------------------------------------------------------------
    4. # Version 2.2E (19.06.2020)
    5. # By Evil95
    6. #==============================================================================
    7. #     - for Major: Variable Single, Set, Script: SGVOTS::MAJOR
    8. #     - for Minor: Variable Single , Set, Script:: SGVOTS::MINOR
    9. #     - for Bufgix: Variable Single , Set, Script:: SGVOTS::BUGFIX
    10. #----------------------------------------------------------------------------
    11. #                          CONFIG START
    12. #----------------------------------------------------------------------------
    13. module SGVOTS
    14.   # If true it shows the Text "Version: "
    15.     VERSIONSTEXT = false
    16.    
    17.   # Here you can change the Text which is shown if the above is on true
    18.     VERSIONTEXT = "Version:"
    19.    
    20.   # Here you can change the version number:
    21.     MAJOR = "1"
    22.     MINOR = "0"
    23.     BUGFIX = "5"
    24.   # If true, it will show the version with  3 numbers e.g.: 1.0.5
    25.     BUGFIXANZEIGE = true
    26.   
    27.   # Here you can change the fontsize
    28.     FONT_GROESSE = 16
    29.   
    30.   # If true the font is bold
    31.     FETTE_FONT = true
    32.   
    33.   # If true the font has shadow
    34.     FONT_SCHATTEN = true
    35.   
    36.   # Here you can change the font color
    37.     FONT_FARBE = 255,255,255,255
    38.   
    39.   # Here you can change the font itself
    40.     FONT_NAME = "Verdana"
    41.   
    42.   # Here you can change the position
    43.   # 1 = Upper Left, 2 = Down Left, 3 = Upper Right, 4 = Down Right
    44.     ORT = 4
    45. end
    46. #----------------------------------------------------------------------------
    47. #                          CONFIG END
    48. #----------------------------------------------------------------------------
    49. class Scene_Title
    50. alias :sgvots_create :create_background
    51. alias :sgvots_dispose :dispose_background
    52. def create_background
    53.   sgvots_create
    54.   $sgvots = Gameversion.new
    55. end
    56. def dispose_background
    57.    sgvots_dispose
    58.    $sgvots.dispose
    59. end
    60. end
    61. class Gameversion < Window_Base
    62.   def initialize
    63.     super(0, 0, 544, 416)
    64.     self.contents = Bitmap.new(width - 32, height - 32)
    65.     self.opacity = 0
    66.     refresh
    67.   end
    68.   def refresh
    69.     self.contents.clear
    70.     self.contents.font.name = SGVOTS::FONT_NAME
    71.     self.contents.font.size = SGVOTS::FONT_GROESSE
    72.     self.contents.font.color = Color.new(SGVOTS::FONT_FARBE[0],SGVOTS::FONT_FARBE[1],SGVOTS::FONT_FARBE[2],SGVOTS::FONT_FARBE[3])
    73.     self.contents.font.shadow = SGVOTS::FONT_SCHATTEN
    74.     self.contents.font.bold = SGVOTS::FETTE_FONT
    75.     if SGVOTS::VERSIONSTEXT
    76.       if SGVOTS::ORT == 1 #Oben Links
    77.         if SVGOTS::BUGFIXANZEIGE
    78.           self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
    79.         else
    80.           self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
    81.         end
    82.       end
    83.     if SGVOTS::ORT == 2 #Unten Links
    84.       if SGVOTS::BUGFIXANZEIGE
    85.         self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
    86.       else
    87.         self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
    88.       end
    89.     end   
    90.     if SGVOTS::ORT == 3 #Oben rechts
    91.       if SGVOTS::BUGFIXANZEIGE
    92.         self.contents.draw_text(350, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
    93.       else
    94.         self.contents.draw_text(350, 0, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
    95.       end
    96.     end
    97.     if SGVOTS::ORT == 4 #Unten rechts
    98.       if SGVOTS::BUGFIXANZEIGE
    99.         self.contents.draw_text(350, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
    100.       else
    101.         self.contents.draw_text(350, 356, 150, 34, " " + SGVOTS::VERSIONTEXT + " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
    102.       end
    103.     end   
    104.     else
    105.       if SGVOTS::ORT == 1 #Oben Links
    106.         if SGVOTS::BUGFIXANZEIGE
    107.           self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
    108.         else
    109.           self.contents.draw_text(0, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
    110.         end
    111.       end      
    112.       if SGVOTS::ORT == 2 #Unten Links
    113.         if SGVOTS::BUGFIXANZEIGE
    114.           self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX)
    115.         else
    116.           self.contents.draw_text(0, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR)
    117.         end
    118.       end      
    119.       if SGVOTS::ORT == 3 #Oben rechts
    120.         if SGVOTS::BUGFIXANZEIGE
    121.           self.contents.draw_text(446, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
    122.         else
    123.           self.contents.draw_text(446, 0, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
    124.         end
    125.       end      
    126.       if SGVOTS::ORT == 4 #Unten rechts
    127.         if SGVOTS::BUGFIXANZEIGE
    128.           self.contents.draw_text(446, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR + "." + SGVOTS::BUGFIX, 2)
    129.         else
    130.           self.contents.draw_text(446, 356, 150, 34, " " + SGVOTS::MAJOR + "." + SGVOTS::MINOR, 2)
    131.         end        
    132.       end
    133.     end
    134.   end
    135. end
    复制代码




    本贴来自国际rpgmaker官方论坛作者:Evil95处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/show-game-version-on-title-screen-v2-2e-by-evil95.122845/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 10:25 , Processed in 0.127001 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表