Class: UI::Shop::Arrow

Inherits:
Bag::Arrow show all
Defined in:
scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb

Instance Attribute Summary

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

Attributes inherited from LiteRGSS::Sprite

#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y

Instance Method Summary collapse

Methods inherited from Bag::Arrow

#update

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update

Methods inherited from LiteRGSS::Sprite

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport) ⇒ Arrow

Initialize the arrow Sprite for the UI

Parameters:

  • viewport (Viewport)

    the viewport in which the Sprite will be displayed



6
7
8
9
10
11
12
# File 'scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb', line 6

def initialize(viewport)
  super
  set_position(*arrow_pos)
  set_bitmap(arrow_filename, :interface)
  self.z = 4
  @counter = 0
end

Instance Method Details

#arrow_filename



18
19
20
# File 'scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb', line 18

def arrow_filename
  'shop/arrow'
end

#arrow_pos



14
15
16
# File 'scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb', line 14

def arrow_pos
  return 105, 79
end