Changes

Jump to navigation Jump to search

Documentation/Engine/Truck Interior Animations and IDs

1,223 bytes added, 14:54, 19 June 2020
Stick Animations
|gadget_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.
|}
1 - maximum setting
|
|-
|engine_brake_stick_anim
|Engine brake control
|0 - off
1 - maximum setting
|''Added in 1.38''
|-
|auto_transmission_stick_anim
|''Added in ETS2 1.27/ATS 1.6''
|}
 
===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
|indicator_warning
|Damage warning indicator
|On when damage is 15% or more
|
|-
|indicator_stop
|Critical damage indicator
|On when damage is 50% or more
|
|-
* 1030 - odometer, needs space for at least six digits
* 1040 - current gear, uses N, A[number], R or R[number] for automatic and N, [number], R or R[number] for manual or sequential
* 1050 - current clock time in proper format, eg. "12:34 " (am/pm"is omitted)
* 1060 - remaining fuel in tank
* 1070 - ui::text for fuel bar, the text is cut left-to-right according to current fuel tank state
* 1075 - 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
* 1145 - ui::text that defines size, orientation and range of adblue bar (typical data "H~~0~~1", horizontal range 0 to 1)
* 1150 - ui::text for water temperature bar, the text is cut according to current water temperature
* 1155 - 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*C130°C (32°F to 266°F))
* 1160 - instant consumption
* 1170 - average (trip) consumption
* 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 for instant fuel economy bar, the text is cut according to current value* 1355 - 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 for average fuel economy bar, the text is cut according to current value* 1365 - ui::text that defines size, orientation and range of average fuel economy bar (typical data "H~~0~~5", horizontal range 0 to 5 km/l (11.8mpg))* 1370 - air pressure value (psi only)* 1380 - transmission mode, detailed (D/N/R/M)
Data for bars are 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".
499
edits

Navigation menu