Class: BattleUI::Cursor

Overview

Sprite showing a cursor (being animated)

Instance Attribute Summary collapse

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 Sprite

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

Methods inherited from LiteRGSS::Sprite

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport) ⇒ Cursor

Create a new cursor

Parameters:



1119
1120
# File 'docs/5_Battle_01_Scene.rb', line 1119

def initialize(viewport)
end

Instance Attribute Details

#origin_x (readonly)

Get the origin x



1110
1111
1112
# File 'docs/5_Battle_01_Scene.rb', line 1110

def origin_x
  @origin_x
end

#origin_y (readonly)

Get the origin y



1112
1113
1114
# File 'docs/5_Battle_01_Scene.rb', line 1112

def origin_y
  @origin_y
end

#target_x (readonly)

Get the target x



1114
1115
1116
# File 'docs/5_Battle_01_Scene.rb', line 1114

def target_x
  @target_x
end

#target_y (readonly)

Get the target y



1116
1117
1118
# File 'docs/5_Battle_01_Scene.rb', line 1116

def target_y
  @target_y
end

Instance Method Details

#register_positions

Register the positions so the cursor can animate itself



1122
1123
# File 'docs/5_Battle_01_Scene.rb', line 1122

def register_positions
end

#start_animationYuki::Animation::TimedLoopAnimation

Create and start the cursor animation



1137
1138
# File 'docs/5_Battle_01_Scene.rb', line 1137

def start_animation
end

#stop_animation

Stops the animation



1133
1134
# File 'docs/5_Battle_01_Scene.rb', line 1133

def stop_animation
end

#update

Update the sprite



1125
1126
# File 'docs/5_Battle_01_Scene.rb', line 1125

def update
end

#visible=(visible)

Set the visibility

Parameters:

  • visible (Boolean)


1129
1130
# File 'docs/5_Battle_01_Scene.rb', line 1129

def visible=(visible)
end