From 1419e989cdcf5c3026398f76c3fde5d59110d2c2 Mon Sep 17 00:00:00 2001 From: Issac332 <119879937+Issac8658@users.noreply.github.com> Date: Sat, 23 May 2026 21:28:18 +0300 Subject: [PATCH] inventory centrize in 16:9 --- scripts/Window_Help.rb | 2 +- scripts/Window_Item.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Window_Help.rb b/scripts/Window_Help.rb index a5bffa2..1c6c2e8 100644 --- a/scripts/Window_Help.rb +++ b/scripts/Window_Help.rb @@ -9,7 +9,7 @@ class Window_Help < Window_Base # * Object Initialization #-------------------------------------------------------------------------- def initialize - super(Graphics.width / 2 - 304, 16, 608, 64) + super(Graphics.width / 2 - 304, Graphics.height > 600 ? Graphics.height / 2 - 160 : 16, 608, 64) self.contents = Bitmap.new(width - 32, height - 32) Language.register_text_sprite(self.class.name + "_contents", self.contents) self.visible = false diff --git a/scripts/Window_Item.rb b/scripts/Window_Item.rb index 59f8602..70f21c8 100644 --- a/scripts/Window_Item.rb +++ b/scripts/Window_Item.rb @@ -12,7 +12,7 @@ class Window_Item < Window_Selectable # * Object Initialization #-------------------------------------------------------------------------- def initialize - super(Graphics.width / 2 - 304, 96, 608, 224) + super(Graphics.width / 2 - 304, Graphics.height > 600 ? Graphics.height / 2 - 80 : 96, 608, 224) @column_max = COLUMN_MAX refresh self.index = 0