Commit 38b115e8 authored by 神楽坂玲奈's avatar 神楽坂玲奈

标题显示版本号

parent 5a140dc0
...@@ -24,7 +24,7 @@ end ...@@ -24,7 +24,7 @@ end
spec = Gem::Specification.new do |s| spec = Gem::Specification.new do |s|
s.name = 'mycard' s.name = 'mycard'
s.version = '0.5.5' s.version = '0.5.7'
s.extra_rdoc_files = ['README.txt', 'LICENSE.txt'] s.extra_rdoc_files = ['README.txt', 'LICENSE.txt']
s.summary = 'a card game' s.summary = 'a card game'
s.description = s.summary s.description = s.summary
......
...@@ -82,7 +82,7 @@ begin ...@@ -82,7 +82,7 @@ begin
#自动更新 #自动更新
require_relative 'update' require_relative 'update'
Update.start Update.start
WM::set_caption("MyCard v#{Update::Version}", "MyCard")
require_relative 'dialog' require_relative 'dialog'
$log.info("main"){"初始化成功"} $log.info("main"){"初始化成功"}
......
...@@ -27,7 +27,7 @@ class Scene_Duel < Scene ...@@ -27,7 +27,7 @@ class Scene_Duel < Scene
@deck = deck @deck = deck
end end
def start def start
WM::set_caption("MyCard - #{$config['game']} - #{$game.user.name}(#{$game.user.id}) - #{@room.name}(#{@room.id})", "MyCard") WM::set_caption("MyCard v#{Update::Version} - #{$config['game']} - #{$game.user.name}(#{$game.user.id}) - #{@room.name}(#{@room.id})", "MyCard")
@background = Surface.load("graphics/field/main.png").display_format @background = Surface.load("graphics/field/main.png").display_format
Surface.blit(@background, 0, 0, 0, 0, $screen, 0, 0) Surface.blit(@background, 0, 0, 0, 0, $screen, 0, 0)
......
...@@ -16,7 +16,7 @@ class Scene_Lobby < Scene ...@@ -16,7 +16,7 @@ class Scene_Lobby < Scene
require_relative 'scene_duel' require_relative 'scene_duel'
attr_reader :chat_window attr_reader :chat_window
def start def start
WM::set_caption("MyCard - #{$config['game']} - #{$game.user.name}(#{$game.user.id})", "MyCard") WM::set_caption("MyCard v#{Update::Version} - #{$config['game']} - #{$game.user.name}(#{$game.user.id})", "MyCard")
$game.refresh $game.refresh
@background = Surface.load("graphics/lobby/background.png").display_format @background = Surface.load("graphics/lobby/background.png").display_format
Surface.blit(@background,0,0,0,0,$screen,0,0) Surface.blit(@background,0,0,0,0,$screen,0,0)
......
...@@ -11,7 +11,7 @@ require_relative 'scene_replay' ...@@ -11,7 +11,7 @@ require_relative 'scene_replay'
require_relative 'scene_lobby' require_relative 'scene_lobby'
class Scene_Login < Scene class Scene_Login < Scene
def start def start
WM::set_caption("MyCard", "MyCard") WM::set_caption("MyCard v#{Update::Version}", "MyCard")
@background = Surface.load("graphics/login/background.png").display_format @background = Surface.load("graphics/login/background.png").display_format
$config['game'] = 'iDuel' if $config['game'] == '局域网' #临时修补点击过一次局域网之后无限进入局域网的问题 $config['game'] = 'iDuel' if $config['game'] == '局域网' #临时修补点击过一次局域网之后无限进入局域网的问题
@gameselect_window = Window_GameSelect.new(117,269) @gameselect_window = Window_GameSelect.new(117,269)
......
...@@ -10,20 +10,14 @@ require_relative 'window_title' ...@@ -10,20 +10,14 @@ require_relative 'window_title'
BGM = 'title.ogg' BGM = 'title.ogg'
class Scene_Title < Scene class Scene_Title < Scene
def start def start
WM::set_caption("MyCard", "MyCard") WM::set_caption("MyCard v#{Update::Version}", "MyCard")
title = Dir.glob("graphics/titles/title_*.*") title = Dir.glob("graphics/titles/title_*.*")
title = title[rand(title.size)] title = title[rand(title.size)]
@background = Surface.load(title).display_format @background = Surface.load(title).display_format
Surface.blit(@background,0,0,0,0,$screen,0,0) Surface.blit(@background,0,0,0,0,$screen,0,0)
@command_window = Window_Title.new(title["left"] ? 200 : title["right"] ? 600 : 400, 300) @command_window = Window_Title.new(title["left"] ? 200 : title["right"] ? 600 : 400, 300)
#logo = Surface.load("graphics/system/logo.png")
#@logo_window = Window.new(@command_window.x-(logo.w-@command_window.width)/2,150,logo.w,logo.h)
#@logo_window.contents = logo
#$screen.update_rect(0,0,0,0)
@decision_se = Mixer::Wave.load("audio/se/decision.ogg") @decision_se = Mixer::Wave.load("audio/se/decision.ogg")
super super
end end
def clear(x,y,width,height) def clear(x,y,width,height)
Surface.blit(@background,x,y,width,height,$screen,x,y) Surface.blit(@background,x,y,width,height,$screen,x,y)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment