Main Menu
  • Welcome to The RPG Maker Resource Kit.

Character Graphic in main menu

Started by kmp2253, February 02, 2008, 10:00:25 PM

0 Members and 1 Guest are viewing this topic.

kmp2253

Is there any way of switching the character grahpic in the main menu to the battler graphic instead?
CPAS LOCK IS CRUISE CONTROL FOR COOL!

Falcon

Wrong forum, this should be in script requests.

The battler graphic would not fit in the menu. It would be way too fucking big :P

Dertt

Au contraire.


class Window_Base
  #--------------------------------------------------------------------------
  # * Draw Graphic
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #--------------------------------------------------------------------------
  def draw_actor_graphic(actor, x, y)
    bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue)
    cw = bitmap.width
    ch = bitmap.height
    wr = (1.0 * bitmap.width) / (1.0 * bitmap.height)
    nw = (88 * wr)
    src_rect = Rect.new(0, 0, cw, ch)
    dst_rect = Rect.new(x-24, y-76, nw, 88)
    self.contents.stretch_blt(dst_rect, bitmap, src_rect)
  end
end


Credit I think goes to "Deke," but I seem to remember him not requiring any.