Window_NameInput fix
This commit is contained in:
parent
197c1ae9ba
commit
0886970876
|
|
@ -48,11 +48,10 @@ class Window_NameInput < Window_Base
|
||||||
@ok_text = "OK"
|
@ok_text = "OK"
|
||||||
@char_w = 28
|
@char_w = 28
|
||||||
@char_h = 32
|
@char_h = 32
|
||||||
RPG::Mod.exec_hooks("hooks/Window_NameInput/init", binding)
|
|
||||||
end
|
end
|
||||||
def init
|
def init
|
||||||
# Create dimension information
|
# Create dimension information
|
||||||
@table_size = @character_tables[0].first.size
|
@table_size = @character_tables[0].size
|
||||||
@table_width = @table_size / @table_height
|
@table_width = @table_size / @table_height
|
||||||
@start_x = ((width - 32) - @table_width * @char_w) / 2
|
@start_x = ((width - 32) - @table_width * @char_w) / 2
|
||||||
@start_y = ((height - 32) - (@table_height + 1) * @char_h + BUTTON_BUFFER) / 2
|
@start_y = ((height - 32) - (@table_height + 1) * @char_h + BUTTON_BUFFER) / 2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue