diff --git a/scripts/Window_NameEdit.rb b/scripts/Window_NameEdit.rb index d78dbfe..1189fb5 100644 --- a/scripts/Window_NameEdit.rb +++ b/scripts/Window_NameEdit.rb @@ -17,7 +17,7 @@ class Window_NameEdit < Window_Base # max_char : maximum number of characters #-------------------------------------------------------------------------- def initialize - super(0, 0, 640, 128) + super(Graphics.width / 2 - 320, Graphics.height / 2 - 240, 640, 128) self.contents = Bitmap.new(width - 32, height - 32) if $game_switches[91] @name = "" diff --git a/scripts/Window_NameInput.rb b/scripts/Window_NameInput.rb index 91640e3..c14a644 100644 --- a/scripts/Window_NameInput.rb +++ b/scripts/Window_NameInput.rb @@ -41,7 +41,7 @@ class Window_NameInput < Window_Base # * Object Initialization #-------------------------------------------------------------------------- def initialize - super(0, 128, 640, 352) + super(Graphics.width / 2 - 320, Graphics.height / 2 - 112, 640, 352) self.contents = Bitmap.new(width - 32, height - 32) @index = 0 @ok_text = "OK"