From 67d202aed312ae11d2f3c1034157fb0e7ec41473 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Mon, 18 May 2026 10:54:31 +0400 Subject: [PATCH] H --- scripts/Credits_Message.rb | 2 +- scripts/FastTravel.rb | 2 +- scripts/Scene_End.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/Credits_Message.rb b/scripts/Credits_Message.rb index 2cb5316..c67cd98 100644 --- a/scripts/Credits_Message.rb +++ b/scripts/Credits_Message.rb @@ -16,7 +16,7 @@ class Credits_Message @sprite_bg.bitmap.fill_rect(0, 0, Graphics.width, Graphics.height, Color.new(255, 255, 255, 255)) end @sprite_text = Sprite.new(@viewport) - @contents = Bitmap.new((Graphics.width / 2), (Graphics.height / 2)) + @contents = Bitmap.new(Graphics.width / 2, Graphics.height / 2) Language.register_text_sprite(self.class.name + "_contents", @contents) @contents.font.size = 16 @sprite_text.bitmap = @contents diff --git a/scripts/FastTravel.rb b/scripts/FastTravel.rb index 5d72923..a128b85 100644 --- a/scripts/FastTravel.rb +++ b/scripts/FastTravel.rb @@ -12,7 +12,7 @@ class FastTravel @bg.bitmap.fill_rect(0, 0, Graphics.width, Graphics.height, Color.new(0, 0, 0, 128)) @title = Sprite.new(@viewport) Language.register_text_sprite(self.class.name + "_title", @title) - @title.bitmap = Bitmap.new(320, TITLE_MARGIN) + @title.bitmap = Bitmap.new(Graphics.width / 2, TITLE_MARGIN) @title.bitmap.font.size = 40 @title.y = TITLE_TOP_MARGIN @title.x = MARGIN diff --git a/scripts/Scene_End.rb b/scripts/Scene_End.rb index c29a611..e4f3117 100644 --- a/scripts/Scene_End.rb +++ b/scripts/Scene_End.rb @@ -14,8 +14,8 @@ class Scene_End s2 = "Shutdown" s3 = "Cancel" @command_window = Window_Command.new(192, [s1, s2, s3]) - @command_window.x = 320 - @command_window.width / 2 - @command_window.y = 240 - @command_window.height / 2 + @command_window.x = (Graphica.width / 2) - @command_window.width / 2 + @command_window.y = (Graphica.height / 2) - @command_window.height / 2 # Execute transition Graphics.transition # Main loop