Module:MouseCursor

From PanoZona

Contents

MouseCursor
Author Marek Standio
Module version 1.3
Compatibility SaladoPlayer 1.0 +

MouseCursor is simple module that hides default cursor and replaces it with bitmaps cropped from bitmap grid. You can easily change cursors by pointing to different bitmaps grid. Module makes viewing panoramas more straight-forward: By changing cursor when user hovers mouse over panorama window it notifies user that image can be manipulated.


Configuration structure

Configuration details

MouseCursor

Attribute TypeSub-attribute TypeDefaultValuesDescription
path S - - path to swf file Mandatory attribute. Value points to module swf file.

settings

Attribute TypeSub-attribute TypeDefaultValuesDescription
path S - - path to image file Mandatory attribute. Value points to image file with bitmaps grid containing bitmaps for chosen cursor states. There is no restriction for overall grid size, but it has to be formated properly. All bitmaps in grid have to be of the same size. Grid has to contain 2 columns and 3 rows with inner borders of 1 px. Each column consists of three bitmaps: first row for mouse hovering over panorama, second row for static mouse left button press and third row for mouse moving over panorama with left mouse button pressed. First column contains bitmaps for mouseInertial navigation, and second one for mouseDrag navigation.
showLine B - false true,false Determines if there is a line drawn in nertial mode from the point where mouse gets clicked to its current position.
style O lineColorInner N #000000 #000000 to #FFFFFF Color of line center.
lineColorOuter N #FFFFFF #000000 to #FFFFFF Color of line outline.
lineSize N 5 - Width of line.