#==============================================================================
# ** Quest Points Window
#------------------------------------------------------------------------------
# © Dargor, 2008
#Â Requested by jonny chleevas
#Â 28/08/08
#==============================================================================
#==============================================================================
# ** Quest Window Configuration Module
#==============================================================================
module Quest_Window
 X = 0
 Y = 0
 Width = 128
 Height = 56
 Text = 'Quest Points:'
 Variable_ID = 20
end
#==============================================================================
# ** Window_QuestPoints
#------------------------------------------------------------------------------
#Â This window displays quest points on the menu screen.
#==============================================================================
class Window_QuestPoints < Window_Base
 #--------------------------------------------------------------------------
 # * Object Initialization
 #  x : window X coordinate
 #  y : window Y coordinate
 #--------------------------------------------------------------------------
 def initialize
  super(Quest_Window::X, Quest_Window::Y, Quest_Window::Width, Quest_Window::Height)
  refresh
 end
 #--------------------------------------------------------------------------
 # * Refresh
 #--------------------------------------------------------------------------
 def refresh
  self.contents.clear
  width = contents.text_size(Quest_Window::Text).width
  self.contents.font.color = system_color
  self.contents.draw_text(4,0,width,WLH,Quest_Window::Text)
  self.contents.font.color = normal_color
  self.contents.draw_text(4,0,width,WLH,$game_variables[Quest_Window::Variable_ID].to_s, 2)
 end
end
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#Â This class performs the menu screen processing.
#==============================================================================
class Scene_Menu < Scene_Base
 #--------------------------------------------------------------------------
 # * Alias Listing
 #--------------------------------------------------------------------------
 alias dargor_vx_qw_menu_start start
 alias dargor_vx_qw_menu_terminate terminate
#--------------------------------------------------------------------------
 # * Start Processing
 #--------------------------------------------------------------------------
 def start
  dargor_vx_qw_menu_start
  @quest_window = Window_QuestPoints.new
 end
 #--------------------------------------------------------------------------
 # * Terminate Processing
 #--------------------------------------------------------------------------
 def terminate
  dargor_vx_qw_menu_terminate
  @quest_window.dispose
 end
end