Class: UI::DexWinMap

Inherits:
SpriteStack show all
Defined in:
scripts/01300 UI/09000 Others/01400 Dex UIs.rb

Overview

Dex sprite that show the Pokemon location

Constant Summary collapse

MAP_ICON =

Filename of the World Map Icon

'344'

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes inherited from SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

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, display_controls = true) ⇒ DexWinMap

Create a new dex win sprite

Instance Method Details

#data=(pokemon)

Change the data and the state

Parameters:

  • pokemon (PFM::Pokemon, :map)

    if set to map, we'll be showing the map icon

#set_location(place, color = 10)

Set the location name

Parameters:

  • place (String)

    the name to display

  • color (Integer) (defaults to: 10)

    the color code

#set_region(place, color = 10)

Set the region name

Parameters:

  • place (String)

    the name to display

  • color (Integer) (defaults to: 10)

    the color code