Text inputs centered
This commit is contained in:
parent
2aa4ba3f71
commit
fad4bb1681
|
|
@ -17,7 +17,7 @@ class Window_NameEdit < Window_Base
|
||||||
# max_char : maximum number of characters
|
# max_char : maximum number of characters
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def initialize
|
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)
|
self.contents = Bitmap.new(width - 32, height - 32)
|
||||||
if $game_switches[91]
|
if $game_switches[91]
|
||||||
@name = ""
|
@name = ""
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class Window_NameInput < Window_Base
|
||||||
# * Object Initialization
|
# * Object Initialization
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def initialize
|
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)
|
self.contents = Bitmap.new(width - 32, height - 32)
|
||||||
@index = 0
|
@index = 0
|
||||||
@ok_text = "OK"
|
@ok_text = "OK"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue