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 # * Object Initialization
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
def initialize 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) self.contents = Bitmap.new(width - 32, height - 32)
Language.register_text_sprite(self.class.name + "_contents", self.contents) Language.register_text_sprite(self.class.name + "_contents", self.contents)
self.visible = false self.visible = false

View File

@ -12,7 +12,7 @@ class Window_Item < Window_Selectable
# * Object Initialization # * Object Initialization
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
def initialize 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 @column_max = COLUMN_MAX
refresh refresh
self.index = 0 self.index = 0