Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** Window_Archeia_Status
- #------------------------------------------------------------------------------
- # This window displays the status of actors
- #==============================================================================
- class Window_Archeia_Status < Window_Base
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, 300, fitting_height(5))
- self.openness = 0
- refresh
- end
- #--------------------------------------------------------------------------
- # * Get Window Width
- #--------------------------------------------------------------------------
- def window_width
- return 160
- end
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- contents.clear
- change_color(Color.new(0, 0, 0))
- [1, 2, 3, 4, 5, 6].each_with_index {|id,i|
- item = $data_items[id]
- x = (i % 3) * 48
- y = 24 + (i / 3) * 28
- draw_icon(item.icon_index, x, y)
- draw_text(x + 24, y, 24, 24, $game_party.item_number(item), 1)
- puts $game_party.item_number(item)
- }
- end
- end
- #==============================================================================
- # ** Game_Interpreter
- #------------------------------------------------------------------------------
- # An interpreter for executing event commands. This class is used within the
- # Game_Map, Game_Troop, and Game_Event classes.
- #==============================================================================
- class Game_Interpreter
- #--------------------------------------------------------------------------
- # * Archeia Status Window
- #--------------------------------------------------------------------------
- def archeia_status_window ; SceneManager.scene.archeia_status_window end
- end
- #==============================================================================
- # ** Scene_Map
- #------------------------------------------------------------------------------
- # This class performs the map screen processing.
- #==============================================================================
- class Scene_Map < Scene_Base
- #--------------------------------------------------------------------------
- # * Alias Listing
- #--------------------------------------------------------------------------
- alias archeia_map_status_windows_create_all_windows create_all_windows
- #--------------------------------------------------------------------------
- # * Public Instance Variables
- #--------------------------------------------------------------------------
- attr_reader :archeia_status_window # Archeia Status Window
- #--------------------------------------------------------------------------
- # * Create All Windows
- #--------------------------------------------------------------------------
- def create_all_windows(*args, &block)
- # Run Original Method
- archeia_map_status_windows_create_all_windows(*args, &block)
- @archeia_status_window = Window_Archeia_Status.new
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement