mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 13:59:57 +00:00
Text inputs centered
This commit is contained in:
parent
2aa4ba3f71
commit
fad4bb1681
2 changed files with 2 additions and 2 deletions
|
|
@ -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 = ""
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue