Interfaces are adapted to different resolutions
This commit is contained in:
parent
2255c7f550
commit
48917137f3
|
|
@ -9,7 +9,7 @@ class Window_Help < Window_Base
|
||||||
# * Object Initialization
|
# * Object Initialization
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def initialize
|
def initialize
|
||||||
super(16, 16, 608, 64)
|
super(Graphics.width / 2 - 304, 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
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ class Window_Item < Window_Selectable
|
||||||
# * Object Initialization
|
# * Object Initialization
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def initialize
|
def initialize
|
||||||
super(16, 96, 608, 224)
|
super(Graphics.width / 2 - 304, 96, 608, 224)
|
||||||
@column_max = 2
|
@column_max = COLUMN_MAX
|
||||||
refresh
|
refresh
|
||||||
self.index = 0
|
self.index = 0
|
||||||
self.back_opacity = 230
|
self.back_opacity = 230
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# The main menu window
|
# The main menu window
|
||||||
class Window_MainMenu < Window_Selectable
|
class Window_MainMenu < Window_Selectable
|
||||||
def initialize
|
def initialize
|
||||||
super(16, 16, 608, 64)
|
super(Graphics.width / 2 - 304, 16, 608, 64)
|
||||||
|
|
||||||
# Set up menu options
|
# Set up menu options
|
||||||
@commands = Array.new
|
@commands = Array.new
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ class Window_Message < Window_Selectable
|
||||||
# * Object Initialization
|
# * Object Initialization
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def initialize
|
def initialize
|
||||||
|
# I would make the interface width a separate constant/setting
|
||||||
super(Graphics.width / 2 - 304, 336, 608, 128)
|
super(Graphics.width / 2 - 304, 336, 608, 128)
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue