309
edits
Changes
Corrected heading levels to wiki standard; Began changing cabin animations to tabular format & adapting content from my 'Animations Cheatsheet' (http://forum.scssoft.com/viewtopic.php?f=201&t=204022)
==Interior Animations==
For movement of various things in truck interior are used program driven animations ( '''_anim''' ). For each animation can be set range by '''*_anim_min''' and '''*_anim_max''' values. As most animations expect range from 0 to 1, this are also default values. If animation expect any other value range it will be stated below.
===Special animationsAnimations===
===Stick animationsAnimations===
Typical usage is for a 'push to supply' type, so the valve is 'out' in the 0.0 state and 'in' in the 1.0 state|-|trailer_brake_stick_anim|Trailer brake hand valve(sometimes called the 'spike')|0 - rest position1 - trailer brake hand valve fully applied|Do not confuse this with the trailer supply valve - the hand valve is used (rarely) to apply only the trailer brakes in a controlled manner|-|retarder_stick_anim|Retarder control|0 - off1 - maximum setting||-|auto_transmission_stick_anim|Automatic transmission gear selector|0 - reverse<br />0.5 - neutral<br />1 - drive||-|lift_axle_stick_anim|Lift axle switch/control|||}===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.{| class="wikitable"!Attribute Name!Function!Behavior!Notes|-|oil_psi_anim - range |Engine oil pressure in psi (pounds per square inch(psi), |0 - oil_psi_anim_min1 - oil_psi_anim_max|40-90 psi is typical working value* |-|water_temp_anim |Engine water/coolant temperature (°C)|0 - in celsius degrees, water_temp_anim_min1 - water_temp_anim_max|working value 90*C90°C|-* |battery_anim - |Battery potential in volts|0 - battery_anim_min1 - battery_anim_max|Nominally 24V. For 12V systems, working set the min/max attributes to twice the value 24Vthe gauge displays and it should appear as if it is indeed a 12V system.|-* |oil_temp_anim - engine |Engine oil temperature, in celsius degrees, (°C)|0 - oil_temp_anim_min1 - oil_temp_anim_max|working value 90*C90°C|-* |diff_temp_anim |Differential temperature (°C)|0 - differential temperature, in celsius degrees, diff_temp_anim_min1 - diff_temp_anim_max|working value 90*C90°C|-* |tachometer_anim - |Tachometer in rpm (revolution per minute)* |0 - tachometer_anim_min1 - tachometer_anim_max||-|speedometer_anim |Speedometer (km/h)|0 - speed in kmspeedometer_anim_min1 - speedometer_anim_max|1mph = 1.60934km/h* |-|air_psi_anim - range |Air brake reservoir pressure in psi (pounds per square inch), |0 - air_psi_anim_min1 - air_psi_anim_max|working value 140 psi* |-|brake_psi_anim - |Air brake application||range is 0 to 1, maximum pressure value should be equivalent of 60-70 psi* |-|suspension_load_anim |Suspension load in newtons|0 - suspension_load_anim_min1 - suspension_load_anim_max|expects range in newtons (22t trailer creates like 70kN on kingpin)* |-|fuel_anim* |Fuel gauge (relative to full)|0 - fuel_anim_min1 - fuel_anim_max|By default, 0 corresponds to empty state and 1 corresponds to full|-|ad_blue_anim* |Ad Blue/DEF gauge (relative to full)|0 - fuel_anim_min1 - fuel_anim_max|By default, 0 corresponds to empty state and 1 corresponds to full|-|turbo_anim* |Manifold pressure|||-|consumption_anim - instant |Instantaneous fuel consumption in l/100km, |0 - consumption_anim_min1 - consumption_anim_max|scania gauge has 0 to 120* |-|clock_big_anim - minutes|Analog clock, minute hand (0-60)* |||-|clock_small_anim - hours|Analog clock, hour hand (0-12)* |||-|generic_anim - animation |Animation for other gauges. |0 when truck is turned off, <br />1 when truck is turned on.||}===Indicator animations===
* button_left_blinker
* button_parking_brake
* button_4way - indicator should be placed on hazard warning button for blinking
* button_abs
* button_bbw
* button_avi
* indicator_retarder
* indicator_warning - damage warning indicator
* indicator_generic - animation for other indicator. 0 most of the time, 1 when truck is making electricity check (after turned on).
==Dashboards IDs==
Screen of dashboard computers uses our UI library and shows thus UI elements. Each element has unique ID and can be used only once (due to caching). Most of fields can be used as two parameter template - value and unit, both are used accordingly to current game options. As in different languages can be units and other texts translated ensure that there are enough space for all of them.
===Screen IDs ( '''ui::group''' type):===
* 100 to 800 - basic screens, up to 8 screens
* 950 - shared screen (used together with all basic screens)
===Element IDs (mostly '''ui::text_common''' type):===
* 1000 - ambient temperature