Class: UI::LevelUpWindow

Inherits:
Window show all
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

Window::DEFAULT_SKIN

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

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

#dispose, #disposed?

Constructor Details

#initialize(viewport, pokemon, list0, list1) ⇒ LevelUpWindow

Create a new Level Up Window

Parameters:

  • viewport (Viewport)

    viewport in which the Pokemon is shown

  • pokemon (PFM::Pokemon)

    Pokemon that is currently leveling up

  • list0 (Array)

    old basis stats

  • list1 (Array)

    new basis stats



9
10
11
12
13
14
15
# File 'scripts/01450 Systems/00102 Party/00002 UI/00400 LevelUpWindow.rb', line 9

def initialize(viewport, pokemon, list0, list1)
  super(viewport, 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