Class: UI::DexSeenGot
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::DexSeenGot
- Defined in:
- scripts/01450 Systems/00101 Dex/00002 UI/01400 Dex UIs.rb
Overview
Dex sprite that show the Pokemon location
Constant Summary
Constants inherited from SpriteStack
Instance Attribute Summary
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#initialize(viewport) ⇒ DexSeenGot
constructor
Create a new dex win sprite.
Methods inherited from SpriteStack
#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport) ⇒ DexSeenGot
Create a new dex win sprite
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'scripts/01450 Systems/00101 Dex/00002 UI/01400 Dex UIs.rb', line 27 def initialize() # Create the sprite stack at coordinate 0, 152 using the RPG::Cache.pokedex as image source super(, 0, 152, default_cache: :pokedex) # Show the background image add_background('WinNum') # Show the "Seen: " text seen_text = add_text(2, 0, 79, 26, ext_text(9000, 20), color: 10) seen_text.bold = true # Show the number of Pokemon Seen add_text(seen_text.real_width + 4, 0, 79, 26, :creature_seen, 0, type: SymText, color: 10) # Show the "Got: " text got_text = add_text(2, 28, 79, 26, ext_text(9000, 21), color: 10) got_text.bold = true # Show the number of Pokemon Got add_text(got_text.real_width + 4, 28, 79, 26, :creature_caught, 0, type: SymText, color: 10) # Define the Pokedex as text source self.data = $pokedex end |