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
     
 vr boolean Whether turn on vr mode ( default is nil )
 vr_controller_enable boolean Whether use controller operation
 vr_beam_enable boolean Whether use beam operation
 vr_beam_color dword The color of indicate beam
 vr_beam_endcolor dword The color of indicate beam's end
 vr_teleport_time number How long time to wait for teleport ?
 vr_action_time number How long time to wait for action ?
 vr_focus_circle_color dword The color of focus circle
 vr_focus_circle_radius number The radius of focus circle
 vr_cursor_scale number The scale of cursor in vr
     
 cover_area_width number The width of cover area in vr
 cover_area_height number The height of cover area in vr
 cover_area_depth number The depth of cover area in vr ( distance to eye )
 elevation_angle_for_inventory number The camera elevation angle for opening inventory window
 item_area_width number The width of item area in vr
 item_area_height number The height of item area in vr
 item_area_depth number The depth of item area in vr ( distance to eye )
 item_icon_width number The width of icon in item area
 item_icon_height number The height of icon in item area
 item_icon_gap number The interval between icons in item area
 item_frame_color dword The color of frame for indicating current item

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',

vr_teleport_time = 3,
vr_action_time = 3,
vr_beam_color = COLOR_YELLOW,
vr_beam_endcolor = toDWORD('00fcfc54'),
vr_focus_circle_color = toDWORD('88fcfc54'),
vr_focus_circle_radius = 10,
vr_cursor_scale = 0.001,

cover_area_width = 100,
cover_area_height = 75,
cover_area_depth = 150,

elevation_angle_for_inventory = 30, -- the camera elevation angle for opening inventory window

item_area_width = 100,
item_area_height = 75,
item_area_depth = 150,
item_icon_width = 20,
item_icon_height = 20,
item_icon_gap = 2,
item_frame_color = COLOR_YELLOW,
}

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}