Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / common / data_common / r2 / r2_config.lua
blob8e517147185deb338ee9c6573ba0ffd12a54b986
1 -- config file for the r2 environment
4 verboseDebugInfo = false -- when set to true, debug infos will be preceded by the number of the line that generated them
5 traceFunctions = false -- when set to true, each function enter / function leave are dumped to the stack
8 -- TODO nico : a table with predefined colors
9 r2.Config =
11 PrimDisplayEnabled = true, -- should route and zones be displayed ?
12 FloatingShapeRefScale = 1.0, -- size of the floating mesh displayed at the mouse position when view-ray didn't hit a valid pos (in creation mode)
13 RegionFadeTimeInMs = 300, -- time in ms needed for a region to get higlighted
14 TestPaletteSelection = false, -- complete the palette for a test for selection by ecosystem & level
15 VerboseGetUI = false, -- some getUI can be made silent when they fail by turning this option to 'false'
16 ResetWindowPos = true, -- TMP : should windows pos be reseted at startup ?
17 ActMaxQuota = 99, -- 'hardcoded" : max content that can be added into an act (checked by server too, but value is not taken from this file of course ..)
18 -- decals look
19 HightlightDecalLook =
21 DurationInMs = 1000,
22 Texture = "r2_highlight_decal.tga",
23 EndScaleFactor = 1,
24 EndAngleInDegrees = 0,
25 StartDiffuse = CRGBA(255, 255, 255),
26 EndDiffuse = CRGBA(127, 0, 255),
27 StartEmissive = CRGBA(0, 0, 0),
28 EndEmissive = CRGBA(0, 0, 0),
30 SelectDecalLook =
32 DurationInMs = 1000,
33 Texture = "r2_select_decal.tga",
34 EndScaleFactor = 1.2,
35 EndAngleInDegrees = 0,
36 StartDiffuse = CRGBA(255, 0, 0),
37 EndDiffuse = CRGBA(255, 0, 0, 127),
38 StartEmissive = CRGBA(0, 0, 0),
39 EndEmissive = CRGBA(127, 127, 127),
41 SelectingDecalLook =
43 DurationInMs = 200,
44 Texture = "r2_select_decal.tga",
45 EndScaleFactor = 1.2,
46 EndAngleInDegrees = 90,
47 StartDiffuse = CRGBA(255, 255, 255),
48 EndDiffuse = CRGBA(255, 255, 255, 0),
49 StartEmissive = CRGBA(0, 0, 0),
50 EndEmissive = CRGBA(0, 0, 0)
52 PionneerDecalLook =
54 DurationInMs = 3000,
55 Texture = "r2_pionneer_edit.tga",
56 EndScaleFactor = 1.05,
57 EndAngleInDegrees = 0,
58 StartDiffuse = CRGBA(255, 0, 0, 255),
59 EndDiffuse = CRGBA(255, 0, 0, 192),
60 StartEmissive = CRGBA(0, 64, 0),
61 EndEmissive = CRGBA(0, 0, 0)
64 MapEntityInvalidTexture = "r2_icon_map_invalid.tga", -- over displayed on minimap when object in on invalid pos
65 MapEntityInvalidTextureSmall = "r2_icon_map_invalid_small.tga", -- over displayed on minimap when object in on invalid pos, small version
66 MapEntityFrozenColor = CRGBA(0, 255, 255, 80),
67 MapEntityLockedColor = CRGBA(127, 0, 200, 80),
68 ArrayInstanceColor = CRGBA(255, 255, 255, 127),
69 MapEntityDefaultTexture = "brick_default.tga"; -- Bitmap to be used when one of the following bitmaps wasn't found
70 MapEntitySelectTexture = "r2_icon_select.tga", -- The 'circle' bitmap draw on the map over selected / highlighted entities
71 MapEntityHighlightColor = CRGBA(255, 255, 255, 255), -- Color of selection bitmap over an entity on the map
72 MapEntitySelectColor = CRGBA(255, 0, 0, 255), -- Color of highlight bitmap over an entity on the map
73 MapEntityFarTexture = "r2_icon_far.tga", -- Texture to display on the border of the map when the current selection is out
74 -- ... of the current visible world part in the map
75 MapEntityFarArrowSize = 10, -- Size of the "MapEntityFarTexture" texture in pixels (scale applied ..)
76 MapEntitySmallTexture = "r2_icon_map_entity_small.tga", -- Texture for entities when map is zoomed out
77 MapEntitySmallHighlightTexture = "r2_icon_map_entity_small_highlight.tga",
78 MapEntityOrientTexture = "r2_icon_map_entity_orient.tga", -- arrow to signal entity orientation in close view
79 MapEntityOrientOriginDist = 9, -- distance from entity to its orient texture
80 MapEntityOrientOriginDistSmall = 5, -- distance from entity to its orient texture when the entity is small and wihle it is being rotated
81 MapEntityOrientBlendTimeInMs = 300, -- time that the orientation arrow need to get back to alpha = 0 when rotation is stopped
82 MapEntityCloseDist = 0.24, -- number of meter per pixel for the close view
83 MapGlowStarTexture = "r2_glow_star.tga", -- Texture displayed in the border of the map to signal that an object is too far to be seen
84 MapGlowStarSpeed1 = 0.50, -- rotation speed of first map glow star
85 MapGlowStarSpeed2 = -0.60, -- rotation speed of second map glow star
86 MapGlowStarSize = 7, -- size of glow star
87 -- color of regions in the 3D scene
88 FocusedRegionColor = CRGBA(63, 127, 255, 100),
89 SelectedRegionColor = CRGBA(192, 127, 64, 100),
90 UnselectedRegionColor = CRGBA(0, 0, 255, 80),
91 FrozenRegionColor = CRGBA(0, 255, 255, 80),
92 LockedRegionColor = CRGBA(127, 0, 200, 80),
93 -- colors for selected / focused entities / instance in scene (such as creature & npcs)
94 FocusedInstanceColor = CRGBA(200, 32, 64, 127),
95 SelectedInstanceColor = CRGBA(127, 127, 127),
96 UnselectedInstanceColor = CRGBA(0, 0, 0),
97 FrozenInstanceColor = CRGBA(0, 255, 255, 80),
98 LockedInstanceColor = CRGBA(127, 0, 200, 80),
99 -- world map auto pan
100 MapAutoPanBorder = 20, -- number of pixels in the border of the map for which the auto pan is tested
101 MapAutoPanDeltaInMs = 300, -- delta between each map pan when the mouse is on an auto-pan region
102 MapAutoPanFastDeltaInMs = 100, -- delta between each map pan when fast pan is active
103 MapAutoPanSpeedInPixels = 15, -- number of pixel to pan the map
104 MapAutoFastPanNumTicks = 4, -- number of 'slow' pan to do before entering fast pan mode
105 -- foot steps / wander look
106 FootStepMapTexture = "r2_map_foot_steps.tga",
107 FootStepDecalTexture = "r2_foot_steps.tga",
108 FootStepMapWidth = 3,
109 FootStepDecalUScale = 1.5,
110 FootStepDecalWidth = 0.15,
111 FootStepDecalSelectedColor = CRGBA(255, 255, 255, 255),
112 FootStepDecalHiddenColor = CRGBA(0, 0, 255, 120),
113 FootStepDecalFocusedColor = CRGBA(255, 255, 255, 127),
114 FootStepMapSelectedColor = CRGBA(180, 0, 192, 255),
115 FootStepMapHiddenColor = CRGBA(150, 0, 192, 100),
116 FootStepMapFocusedColor = CRGBA(150, 0, 192, 160),
117 WanderDecalTexture = "r2_wander.tga",
118 WanderDecalSize = 0.55,
119 AutoGroupMaxDist = 4,
120 -- display of inaccessible pos on map
121 InaccessiblePosColor0 = CRGBA(255, 0, 0, 255),
122 InaccessiblePosColor1 = CRGBA(200, 217, 0, 255),
123 InaccessiblePosAnimDurationInMS = 500,
124 DecalTopBlendStartDist = 3, -- Distance in meters at which the color starts to fade for player & selection decals (at top)
125 DecalBottomBlendStartDist = 1, -- Distance in meters at which the color starts to fade for player & selection decals (at bottom)
126 DecalBlendLength = 1.5 -- Length for decal color fading (player & selection decals)