Changes

Jump to navigation Jump to search

Documentation/Engine/Truck Interior Animations and IDs

1,003 bytes added, 06:41, 11 October 2019
Element IDs (mostly ui::text_common type):
==Interior Animations==
For The movement of various things in the truck interior are used is controlled by program -driven animations ( '''*_anim''' ). For each animation can be , the range is set range by the '''*_anim_min''' and '''*_anim_max''' values. As most animations expect a range from 0 to 1, this these are also the default values. If an animation expect expects any other value range , it will be stated below.
===Special 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.
|}
!Notes
|-
|oil_pressure_anim<br /><del>oil_psi_anim</del>|Engine oil pressure in pounds per square inch (psibar)
|0 - oil_pressure_anim_min
1 - oil_pressure_anim_max
|403-90 6 bars (43.5-87 psi ) is typical working value
|-
|water_temp_anim
|-
|battery_anim
|Battery potential in volts(V)
|0 - battery_anim_min
1 - battery_anim_max
|1mph = 1.60934km/h
|-
|air_pressure_anim<br /><del>air_psi_anim</del>|Air brake reservoir pressure in (bar)
|0 - air_pressure_anim_min
1 - air_pressure_anim_max
|
|-
|brake_pressure_anim<br /><del>brake_psi_anim</del>|Air brake application in (bar)
|0 - brake_pressure_anim_min
1 - brake_pressure_anim_max
|<del>range is |-|general_air_press_anim|General air supply (bar)|0 to - general_air_press_anim_min1, maximum pressure value should be equivalent of 60-70 psi</del>''general_air_press_anim_max||-|trailer_air_press_anim|Trailer air supply (Prebar)|0 - ETS2 trailer_air_press_anim_min1.27/ATS 1.6)''- trailer_air_press_anim_max|
|-
|suspension_load_anim
|Suspension load in (newtons)
|0 - suspension_load_anim_min
1 - suspension_load_anim_max
|-
|clock_small_anim
|Analog clock, hour hand (0-12)*
|0 - clock_small_anim_min (default 0)
1 - clock_small_anim_max (default 1224)*|*The range of this animation is actually 24h, so an analog clock small-hand animation will require two loops. Presently, clock_small_anim_max must be manually set to 24 for correct functionality.
|-
|generic_anim
|Animation for other gauges.
|0 when truck is turned off<br />1 when truck is turned on
|
|}
|
|-
|indicator_low_air_pressure<br /><del>button_low_air_psi</del>
|Low air pressure warning light
|On when air pressure drops below 60psicca 5 bars
|
|-
|indicator_low_oil_pressure<br /><del>button_low_oil_psi</del>
|Low oil pressure warning light
|On when engine oil pressure is low
|indicator_warning
|Damage warning indicator
|On when damage is 15% or more
|
|-
|indicator_stop
|Critical damage indicator
|On when damage is 50% or more
|
|-
* 1020 - current speed
* 1030 - odometer, needs space for at least six digits
* 1040 - current gear, uses N, DA[number], R or R[number] for automatic and N, [number], R or R[number] for maualmanual 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
* 1090 - water temperature
* 1100 - cruise control speed value
* 1110 - ui::text for oil pressure bar, the text is cut according to current oil pressure
* 1115 - ui::text that defines size, orientation and range of oil pressure bar (typical data "H~~0~~1168", horizontal range 0psi 0bar to 8bar (116psi (8bar))
* 1120 - ui::text for air pressure bar, the text is cut according to current air pressure
* 1125 - ui::text that defines size, orientation and range of air pressure bar (typical data "H~~0~~17412", horizontal range 0psi 0bar to 12bar (174psi (12bar))
* 1130 - ui::text for turbo pressure bar, the text is cut according to current oil pressure
* 1135 - 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 for adblue bar, the text is cut according to current adblue tank state
* 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 to 130*C)
* 1240 - cruise control icon, can be ui::group or ui::text or any other element that could show/hide. Cruise control speed ( 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
* 1270 - parking brake indicator icon
* 1280 - engine running time
* 1290 - retarder icon
* 1300 - transmission gear (raw, without mode info)
* 1310 - transmission mode (without gear info)
* 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 consumption bar, the text is cut according to current consumption value
* 1355 - ui::text that defines size, orientation and range of instant consumption bar (typical data "H~~0~~50", horizontal range 0 to 50 l/100km)
* 1360 - ui::text for average consumption bar, the text is cut according to current consumption value
* 1365 - ui::text that defines size, orientation and range of average consumption bar (typical data "H~~0~~50", horizontal range 0 to 50 l/100km)
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".
507
edits

Navigation menu