mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 14:56:17 +00:00
3:<
This commit is contained in:
parent
6c12e60a7e
commit
710e7eb42a
1 changed files with 14 additions and 15 deletions
|
|
@ -87,20 +87,20 @@ class Scene_Title
|
||||||
@debug.bitmap.draw_text(5, 45, 200, 20, tr("Sunshine #{SunshineVer}"))
|
@debug.bitmap.draw_text(5, 45, 200, 20, tr("Sunshine #{SunshineVer}"))
|
||||||
@debug.bitmap.draw_text(5, 65, 200, 20, tr("sec_#{Sunshine::SECURITYSTATE}"))
|
@debug.bitmap.draw_text(5, 65, 200, 20, tr("sec_#{Sunshine::SECURITYSTATE}"))
|
||||||
if defined?(RubyVM::YJIT)
|
if defined?(RubyVM::YJIT)
|
||||||
if RubyVM::YJIT.enabled?
|
if RubyVM::YJIT.enabled?
|
||||||
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: YJIT"))
|
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: YJIT"))
|
||||||
end
|
end
|
||||||
elsif defined?(RubyVM::ZJIT)
|
elsif defined?(RubyVM::ZJIT)
|
||||||
if RubyVM::ZJIT.enabled?
|
if RubyVM::ZJIT.enabled?
|
||||||
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: ZJIT"))
|
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: ZJIT"))
|
||||||
end
|
end
|
||||||
elsif defined?(RubyVM::RJIT)
|
elsif defined?(RubyVM::RJIT)
|
||||||
if RubyVM::RJIT.enabled?
|
if RubyVM::RJIT.enabled?
|
||||||
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: RJIT"))
|
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: RJIT"))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: unsupported"))
|
@debug.bitmap.draw_text(5, 85, 200, 20, tr("JIT: unsupported"))
|
||||||
end
|
end
|
||||||
if ModLoader::IS_ENABLED
|
if ModLoader::IS_ENABLED
|
||||||
@debug.bitmap.draw_text(5, 65, 200, 20, tr("Mods loaded: #{ModLoader::COUNT}"))
|
@debug.bitmap.draw_text(5, 65, 200, 20, tr("Mods loaded: #{ModLoader::COUNT}"))
|
||||||
end
|
end
|
||||||
|
|
@ -109,7 +109,7 @@ class Scene_Title
|
||||||
@menu.bitmap.draw_text(MENU_X, MENU_Y + 75, 150, 24, tr("..."))
|
@menu.bitmap.draw_text(MENU_X, MENU_Y + 75, 150, 24, tr("..."))
|
||||||
end
|
end
|
||||||
|
|
||||||
Language.register_text_sprite(self.class.name + "_contents", @menu.bitmap)
|
Language.register_text_sprite(self.class.name + "_contents", @menu.bitmap)
|
||||||
|
|
||||||
# Make cursor graphic
|
# Make cursor graphic
|
||||||
@cursor = Sprite.new
|
@cursor = Sprite.new
|
||||||
|
|
@ -126,8 +126,7 @@ class Scene_Title
|
||||||
|
|
||||||
# Play title BGM
|
# Play title BGM
|
||||||
if File.exist?("badend.lock")
|
if File.exist?("badend.lock")
|
||||||
#TODO: fix audio values
|
Audio.bgm_play("Audio/BGM/MyBurdenIsDead.ogg", Audio.bgm_volume, 100)
|
||||||
Audio.bgm_play("Audio/BGM/MyBurdenIsDead.ogg", bgm_volume, 100)
|
|
||||||
else
|
else
|
||||||
$game_system.bgm_play($data_system.title_bgm)
|
$game_system.bgm_play($data_system.title_bgm)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue