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

#set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport) ⇒ Cursor

Create a new cursor

Parameters:



1382
1383
# File 'docs/5_Battle_01_Scene.rb', line 1382

def initialize(viewport)
end

Instance Attribute Details

#origin_x (readonly)

Get the origin x



1373
1374
1375
# File 'docs/5_Battle_01_Scene.rb', line 1373

def origin_x
  @origin_x
end

#origin_y (readonly)

Get the origin y



1375
1376
1377
# File 'docs/5_Battle_01_Scene.rb', line 1375

def origin_y
  @origin_y
end

#target_x (readonly)

Get the target x



1377
1378
1379
# File 'docs/5_Battle_01_Scene.rb', line 1377

def target_x
  @target_x
end

#target_y (readonly)

Get the target y



1379
1380
1381
# File 'docs/5_Battle_01_Scene.rb', line 1379

def target_y
  @target_y
end

Instance Method Details

#register_positions

Register the positions so the cursor can animate itself



1385
1386
# File 'docs/5_Battle_01_Scene.rb', line 1385

def register_positions
end

#start_animation ⇒ Yuki::Animation::TimedLoopAnimation

Create and start the cursor animation



1401
1402
# File 'docs/5_Battle_01_Scene.rb', line 1401

def start_animation
end

#stop_animation

Stops the animation



1397
1398
# File 'docs/5_Battle_01_Scene.rb', line 1397

def stop_animation
end

#update

Update the sprite



1388
1389
# File 'docs/5_Battle_01_Scene.rb', line 1388

def update
end

#visible=(visible)

Set the visibility

Parameters:

  • visible (Boolean)


1392
1393
# File 'docs/5_Battle_01_Scene.rb', line 1392

def visible=(visible)
end