Class: UI::LevelUpWindow
- Inherits:
-
Window
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Window
- Window
- Window
- UI::LevelUpWindow
- Defined in:
- scripts/01450 Systems/00102 Party/00002 UI/00400 LevelUpWindow.rb
Overview
Window responsive of displaying the Level Up information when a Pokemon levels up
Constant Summary
Constants inherited from Window
Instance Attribute Summary
Attributes inherited from LiteRGSS::Window
#__index__, #active, #back_opacity, #contents_opacity, #cursor_rect, #cursorskin, #height, #opacity, #ox, #oy, #pause, #pause_x, #pause_y, #pauseskin, #stretch, #viewport, #visible, #width, #window_builder, #windowskin, #x, #y, #z
Instance Method Summary collapse
-
#initialize(viewport, pokemon, list0, list1) ⇒ LevelUpWindow
constructor
Create a new Level Up Window.
-
#update
Update the Pokemon Icon animation.
Methods inherited from Window
#add_line, #add_text, from_metrics, #load_cursor, #push, #sprite_stack, #stack, window_builder
Methods inherited from Window
#simple_mouse_in?, #translate_mouse_coords
Methods inherited from LiteRGSS::Window
#lock, #locked?, new, #set_origin, #set_position, #set_size, #unlock
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, pokemon, list0, list1) ⇒ LevelUpWindow
Create a new Level Up Window
9 10 11 12 13 14 15 |
# File 'scripts/01450 Systems/00102 Party/00002 UI/00400 LevelUpWindow.rb', line 9 def initialize(, pokemon, list0, list1) super(, window_x, Graphics.height - window_height, window_width, window_height) @pokemon = pokemon @list0 = list0 @list1 = list1 create_sprites end |
Instance Method Details
#update
Update the Pokemon Icon animation
18 19 20 |
# File 'scripts/01450 Systems/00102 Party/00002 UI/00400 LevelUpWindow.rb', line 18 def update @pokemon_icon.update end |