inventory centrize in 16:9

This commit is contained in:
Issac332 2026-05-23 21:28:18 +03:00
parent fad4bb1681
commit 1419e989cd
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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