mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Interfaces are adapted to different resolutions
This commit is contained in:
parent
2255c7f550
commit
48917137f3
4 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue