Advertisement
Archeia

Untitled

Feb 3rd, 2015
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 3.31 KB | None | 0 0
  1.  
  2. #==============================================================================
  3. # ** Window_Archeia_Status
  4. #------------------------------------------------------------------------------
  5. #  This window displays the status of actors
  6. #==============================================================================
  7.  
  8. class Window_Archeia_Status < Window_Base
  9.   #--------------------------------------------------------------------------
  10.   # * Object Initialization
  11.   #--------------------------------------------------------------------------
  12.   def initialize
  13.     super(0, 0, 300, fitting_height(5))
  14.     self.openness = 0
  15.     refresh
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # * Get Window Width
  19.   #--------------------------------------------------------------------------
  20.   def window_width
  21.     return 160
  22.   end
  23.   #--------------------------------------------------------------------------
  24.   # * Refresh
  25.   #--------------------------------------------------------------------------
  26.   def refresh
  27.     contents.clear
  28.     change_color(Color.new(0, 0, 0))
  29.     [1, 2, 3, 4, 5, 6].each_with_index {|id,i|  
  30.       item = $data_items[id]
  31.       x = (i % 3) * 48
  32.       y = 24 + (i / 3) * 28
  33.       draw_icon(item.icon_index, x, y)
  34.       draw_text(x + 24, y, 24, 24, $game_party.item_number(item), 1)
  35.       puts $game_party.item_number(item)
  36.     }
  37.   end
  38. end
  39.  
  40.  
  41. #==============================================================================
  42. # ** Game_Interpreter
  43. #------------------------------------------------------------------------------
  44. #  An interpreter for executing event commands. This class is used within the
  45. # Game_Map, Game_Troop, and Game_Event classes.
  46. #==============================================================================
  47.  
  48. class Game_Interpreter
  49.   #--------------------------------------------------------------------------
  50.   # * Archeia Status Window
  51.   #--------------------------------------------------------------------------
  52.   def archeia_status_window ; SceneManager.scene.archeia_status_window end    
  53. end
  54.  
  55.  
  56. #==============================================================================
  57. # ** Scene_Map
  58. #------------------------------------------------------------------------------
  59. #  This class performs the map screen processing.
  60. #==============================================================================
  61.  
  62. class Scene_Map < Scene_Base
  63.   #--------------------------------------------------------------------------
  64.   # * Alias Listing
  65.   #--------------------------------------------------------------------------
  66.   alias archeia_map_status_windows_create_all_windows          create_all_windows
  67.   #--------------------------------------------------------------------------
  68.   # * Public Instance Variables
  69.   #--------------------------------------------------------------------------
  70.   attr_reader :archeia_status_window                  # Archeia Status Window
  71.   #--------------------------------------------------------------------------
  72.   # * Create All Windows
  73.   #--------------------------------------------------------------------------
  74.   def create_all_windows(*args, &block)
  75.     # Run Original Method
  76.     archeia_map_status_windows_create_all_windows(*args, &block)
  77.     @archeia_status_window = Window_Archeia_Status.new
  78.   end  
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement