Text inputs centered

This commit is contained in:
Issac332 2026-05-23 20:47:02 +03:00
parent 2aa4ba3f71
commit fad4bb1681
2 changed files with 2 additions and 2 deletions

View file

@ -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 = ""

View file

@ -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"