g_config

 Data Member  Type  Explain
 cameraPan boolean Indicates whether enable panning camera when cursor on edges of the viewport.
 cameraPanStep number Indicates the panning speed.
 cameraPanBorderline number Indicates the panning area, when cursor on panning area, camera will be panned.
It's value range is 0 ~ 0.5; 0 means no panning area, and 0.5 mean full window panning.
 tipsColor dword The text color of hotspot tips.
 tipsPosX

number

The X offset of tips message ( relative to cursor position ).
 tipsPosY

number

The Y offset of tips message ( relative to cursor position ).
     
 showCursor boolean Indicates whether show cursor.
 cursor_arrow

string filename

The image file for normal status cursor.
 cursor_hand_open

string filename

The image file for cursor on a normal hotspot.
 cursor_portal string filename The image file for cursor on a portal hotspot.
 cursor_arrow_info { xHotSpot, yHotSpot, nWidth, nHeight } Assigns cursor's hot spot position, width and height ( default is 0, 0, 32, 32 )
 cursor_hand_open_info { xHotSpot, yHotSpot, nWidth, nHeight } Assigns cursor's hot spot position, width and height
 cursor_portal_info

{ xHotSpot, yHotSpot, nWidth, nHeight }

Assigns cursor's hot spot position, width and height

Remark:

The default values of g_config:

g_config = {
cameraPan=true,
cameraPanStep=512,
cameraPanBorderline=0.1,
tipsColor=COLOR_WHITE,
tipsPosX=20,
tipsPosY=24,

showCursor=true,
cursor_arrow='\\cursor_arrow.png',
cursor_hand_open='\\cursor_hand_open.png',
cursor_portal='\\cursor_portal.png',
}

Example:

g_config.cameraPan=true
g_config.tipsColor=COLOR_WHITE
g_config.cursor_arrow='\\cursor_arrow.png'
g_config.cursor_arrow_info={13,2}
g_config.cursor_portal_info={30,0,60,60}