Interfaces are adapted to different resolutions

This commit is contained in:
Issac332 2026-05-20 23:51:22 +03:00
parent 2255c7f550
commit 48917137f3
4 changed files with 5 additions and 4 deletions

View file

@ -9,7 +9,7 @@ class Window_Help < Window_Base
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(16, 16, 608, 64)
super(Graphics.width / 2 - 304, 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,8 +12,8 @@ class Window_Item < Window_Selectable
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(16, 96, 608, 224)
@column_max = 2
super(Graphics.width / 2 - 304, 96, 608, 224)
@column_max = COLUMN_MAX
refresh
self.index = 0
self.back_opacity = 230

View file

@ -1,7 +1,7 @@
# The main menu window
class Window_MainMenu < Window_Selectable
def initialize
super(16, 16, 608, 64)
super(Graphics.width / 2 - 304, 16, 608, 64)
# Set up menu options
@commands = Array.new

View file

@ -10,6 +10,7 @@ class Window_Message < Window_Selectable
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
# I would make the interface width a separate constant/setting
super(Graphics.width / 2 - 304, 336, 608, 128)
self.contents = Bitmap.new(width - 32, height - 32)
Language.register_text_sprite(self.class.name + "_contents", self.contents)