Class: Reticle

PANOLENS. Reticle


new Reticle( [color] [, autoSelect] [, idleImageUrl] [, dwellImageUrl] [, dwellTime] [, dwellSpriteAmount])

Reticle 3D Sprite
Parameters:
Name Type Argument Default Description
color THREE.Color <optional>
0xfffff Color of the reticle sprite
autoSelect boolean <optional>
true Auto selection
idleImageUrl string <optional>
PANOLENS.DataImage.ReticleIdle Image asset url
dwellImageUrl string <optional>
PANOLENS.DataImage.ReticleDwell Image asset url
dwellTime number <optional>
1500 Duration for dwelling sequence to complete
dwellSpriteAmount number <optional>
45 Number of dwelling sprite sequence
Source:

Methods


cancelDwelling()

Cancel dwelling
Source:

clearTimer()

Clear and reset reticle timer
Source:

completeDwelling()

Complete dwelling
Source:

hide()

Make reticle invisible
Source:

loadTextures()

Load reticle textures
Source:

select(completeCallback)

Start reticle timer selection
Parameters:
Name Type Description
completeCallback function Callback after dwell completes
Source:

setupDwellSprite()

Setup dwell sprite animation
Source:

show()

Make reticle visible
Source:

startDwelling()

Start dwelling sequence
Source:

updateDwelling(time)

Update dwelling sequence
Parameters:
Name Type Description
time number Timestamp for elasped time
Source:

updateStatus(status)

Update reticle status
Parameters:
Name Type Description
status number Reticle status
Source: