Changes

Jump to navigation Jump to search
m
Element IDs (mostly ui::text_common type):
|Steering wheel
|0 - left full lock<br />0.5 - center<br />1 - right full lock
|''(Obsolete in 1.42)''<br><br>For best results, each keyframe should be less than 45°<br />The steering wheel bone should be named '''steering_w''' for compatibility with [[Games/ETS2/Modding_guides/1.25#Steering_wheel_accessory|interchangeable steering wheels]].
|-
|wheel_updown_anim
|0&rarr;1 is a full animation cycle<br />(animation will be played as a continuous loop)
|This animation is played in a loop while the truck's ignition/electricity is on.
|-
|left_window_anim
|Left window up/down animation
|0 - closed<br />1 - open
|Controlled with window up/down controls.
|-
|right_window_anim
|Right window up/down animation
|0 - closed<br />1 - open
|Controlled with window up/down controls.
|}
1 - maximum setting
|
|-
|engine_brake_stick_anim
|Engine brake control
|0 - off
1 - maximum setting
|''Added in 1.38''
|-
|auto_transmission_stick_anim
|0 - disengaged<br />1 - engaged
|''Added in ETS2 1.27/ATS 1.6''
|-
|left_window_stick_anim
|Left window switch/control
|0 - closing<br />0.5 - rest position<br />1 - opening
|
|-
|right_window_stick_anim
|Right window switch/control
|0 - closing<br />0.5 - rest position<br />1 - opening
|
|}
 
===Gauge animations===
This set of animations handles analog gauges. The related '''*_min''' and '''*_max''' attributes set the values that the start and end of the animation correspond to. Where the simulated value exceeds the min/max attribute, the animation is clamped.
1 - oil_temp_anim_max
|working value 90°C
|-
|exhaust_temp_anim
|Exhaust gas temperature (°C)
|0 - exhaust_temp_anim_min
1 - exhaust_temp_anim_max
|working range cca to 650°C
|-
|diff_temp_anim
|On when the player must enter an upcoming weigh station
|''Added in ETS2 1.27/ATS 1.6''
|-
|indicator_blind_spot_left
|Left blind spot indicator
|On when some vehicle is near left blind spot of player vehicle
|''Added in ETS2 1.47/ATS 1.45''
|-
|indicator_blind_spot_right
|Right blind spot indicator
|On when some vehicle is near right blind spot of player vehicle
|''Added in ETS2 1.47/ATS 1.45''
|}
* 1050 - current clock time in proper format, eg. "12:34" (am/pm is omitted)
* 1060 - remaining fuel in tank
* 1070 - ui::text ui_text_bar for fuel bar, the text is cut according to current fuel tank state* 1075 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of fuel bar (typical data "H~~0~~1", horizontal range 0 to 1)
* 1080 - guessed operating range of vehicle
* 1090 - water temperature
* 1100 - cruise control speed value
* 1110 - ui::text ui_text_bar for oil pressure bar, the text is cut according to current oil pressure* 1115 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of oil pressure bar (typical data "H~~0~~8", horizontal range 0bar to 8bar (116psi))* 1120 - ui::text ui_text_bar for air pressure bar, the text is cut according to current air pressure* 1125 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of air pressure bar (typical data "H~~0~~12", horizontal range 0bar to 12bar (174psi))* 1130 - ui::text ui_text_bar for turbo pressure bar, the text is cut according to current oil pressure* 1135 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of turbo pressure bar (typical data "H~~0~~1", horizontal range 0 to 1)* 1140 - ui::text ui_text_bar for adblue bar, the text is cut according to current adblue tank state* 1145 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of adblue bar (typical data "H~~0~~1", horizontal range 0 to 1)* 1150 - ui::text ui_text_bar for water temperature bar, the text is cut according to current water temperature* 1155 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of water temperature bar (typical data "H~~0~~130", horizontal range 0*C 0°C to 130°C (32°F to 130*C266°F))
* 1160 - instant consumption
* 1170 - average (trip) consumption
* 1180 - unusedui_text_bar for brake pedal pressure bar, the text is cut according to current pressure* 1185 - unused''(obsolete in 1.49)'' ui::text that defines size, orientation and range of brake pedal pressure bar (typical data "H~~0~~1", horizontal range 0 to 1)
* 1190 - damage warning icon, can be ui::group or ui::text or any other element that could show/hide
* 1200 - low fuel warning icon, can be ui::group or ui::text or any other element that could show/hide
* 1220 - compass, displays strings like "N", "E", "SW".
* 1230 - engine brake icon
* 1240 - cruise control icon, can be ui::group or ui::text or any other element that could show/hide. Cruise control speed ( id 1100) explicitly CAN be child of this group.
* 1250 - cruise control memory icon, can be ui::group or ui::text or any other element that could show/hide.
* 1260 - low air pressure warning icon
* 1290 - retarder icon
* 1300 - transmission gear (raw, without mode info)
* 1310 - transmission mode (without gear info, A/M)
* 1320 - battery voltage
* 1330 - battery voltage gauge, expected to be ui_gauge element type
* 1340 - oil temperature gauge, expected to be ui_gauge element type
* 1350 - ui_text_bar for instant fuel economy bar, the text is cut according to current value* 1355 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of instant fuel economy bar (typical data "H~~0~~5", horizontal range 0 to 5 km/l (11.8mpg))* 1360 - ui_text_bar for instant consumption average fuel economy bar, the text is cut according to current consumption value* 1355 1365 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of instant consumption average fuel economy bar (typical data "H~~0~~305", horizontal range 0 to 305 km/l (11.8mpg))* 1360 1370 - air pressure value (psi only)* 1380 - transmission mode, detailed (D/N/R/M)* 1390 - trip time* 1400 - trip average speed (trip distance / trip time)* 1410 - smart cruise control tolerance if CC is engaged, otherwise hides the element* 1420 - damage stop icon, can be ui::group or ui::text or any other element that could show/hide* 1430 - speed gauge, expected to be ui_gauge element type* 1440 - revolutions per minute (rpm) gauge, expected to be ui_gauge element type* 1450 - cruise control speed gauge, expected to be ui_gauge element type* 1460 - water temperature gauge, expected to be ui_gauge element type* 1470 - parking lights icon, can be ui::group or ui::text or any other element that could show/hide* 1480 - low beam lights icon, can be ui::group or ui::text or any other element that could show/hide* 1490 - differential lock icon, can be ui::group or ui::text or any other element that could show/hide* 1500 - fuel consumed since last trip computer reset* 1510 - remaining fuel in tank percent (range 0-100)* 1520 - remaining adblue in tank percent (range 0-100)* 1530 - ETA (estimated time to arrival), hidden when time is not available (no delivery, no navigation etc.)* 1540 - time until rest is needed, hidden when g_fatigue is 0 (fatigue option is disabled)* 1550 - ui_text_bar for differential temperature bar, the text is cut according to current value* 1555 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of differential temperature bar (typical data "H~~0~~130", horizontal range 0°C to 130°C (32°F to 266°F))* 1560 - ui_text_bar for average consumption suspension load bar, the text is cut according to current consumption value* 1365 1565 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of average consumption suspension load bar (typical data "H~~0~~30100000", horizontal range 0 to 30100kN)* 1570 - left blinker icon* 1580 - right blinker icon* 1590 - high beam icon* 1600 - ui_text_bar for oil temperature bar, the text is cut according to current value* 1605 - ''(obsolete in 1.49)'' ui::text that defines size, orientation and range of oil temperature bar (typical data "H~~0~~130", horizontal range 0°C to 130°C (32°F to 266°F))* 1610 - speed limit* 1620 - digital main mirrors, can be any element that can show/hide (shown when digital main mirrors are detected by the main mirrors using camera unit prefix)* 1630 - digital side mirror, can be any element that can show/hide (shown when digital side mirror is detected by the side mirror using camera unit prefix)* 1640 - digital front mirror, can be any element that can show/hide (shown when digital front mirror is detected by the front mirror using camera unit prefix)* 1650 - digital hood mirrors, can be any element that can show/hide (shown when digital hood mirror is detected by the hood mirror using camera unit prefix)* 1660 - close blind spot indicator (side depends on <code>left_hand_traffic</code> interior data attribute), can be any element that can show/hide (shown when obstacle is detected on left side of the vehicle)* 1670 - far blind spot indicator (side depends on <code>left_hand_traffic</code> interior data attribute), can be any element that can show/hide (shown when obstacle is detected on right side of the vehicle) {{Note|In 1.49 text bars were changed to ui_text_bar element. No additional data is needed now, all is kept in regular members (vertical, min_size, max_size, min_value, max_value).
Old system (pre 1.49) used secondary text fields. Data for bars are were entered in format "H~~0~~130", H means the bar is horizontal (or V for vertical), leftmost position represents value 0, rightmost position represents value 130. Empty text defaults to "H~~0~~1".}}
67
edits

Navigation menu