---------- Erreur de script : Window_Create ----------
----- Type
ArgumentError
----- Message
wrong number of arguments(4 for 3)
----- Position dans Window_Create
Ligne 42
----- Backtrace
Script : Window_Create | Ligne : 42 | Méthode : in `draw_actor_name'
Script : Window_Create | Ligne : 42 | Méthode : in `draw_content'
Script : Window_Create | Ligne : 56 | Méthode : in `refresh'
Script : Window_Create | Ligne : 15 | Méthode : in `initialize'
Script : Scene_Create | Ligne : 15 | Méthode : in `new'
Script : Scene_Create | Ligne : 15 | Méthode : in `main'
Script : Main | Ligne : 49
#==============================================================================
# ■ Window_Create
#------------------------------------------------------------------------------
# Displays character creation text.
#==============================================================================
class Window_Create < Window_Base
#--------------------------------------------------------------------------
# ● Creates the character creation window.
#--------------------------------------------------------------------------
def initialize
super(0, 0, 640, 480)
self.contents = Bitmap.new(width - 32, height - 32)
@index = 0
refresh
end
#--------------------------------------------------------------------------
# ● Draws the window's rect.
#--------------------------------------------------------------------------
def index=(index)
@index = index
self.cursor_rect.set(136, @index * 32 + 96, 240, 32)
end
#--------------------------------------------------------------------------
# ● Draws the window's header.
#--------------------------------------------------------------------------
def draw_header
self.contents.font.size = 32
self.contents.font.bold = true
self.contents.draw_text(0, 0, 640, 32, "Creation d'un nouveau personnage", 1)
self.contents.font.bold = false
self.contents.font.size = 24
self.contents.fill_rect(0, 32, 640, 1, normal_color)
end
#--------------------------------------------------------------------------
# ● Draws the window's contents.
#--------------------------------------------------------------------------
def draw_content(actor, x, y)
draw_actor_name(actor, x, y, true)
draw_gender(x, y + 32)
draw_actor_class(actor, x, y + 64, true)
draw_actor_style(actor, x, y + 96, true)
draw_actor_graphic(actor, x + 280, y + 64)
self.contents.draw_text(x, y + 128, 160, 32, "Crée")
end
#--------------------------------------------------------------------------
# ● Refreshes the window.
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_header
draw_content($game_actors[1], 140, 96)
end
#--------------------------------------------------------------------------
# ● Updates the window.
#--------------------------------------------------------------------------
def update
super
refresh
end
end