;
; Views for the car
; 29-01-01: Created!
; 17-02-02: Added some new things; linear view elements.
; 28-07-03: Added digital view element.
; Ruud van Gaal
;
views
{
  view0
  {
    name=Outside
    elt0
    {
      ; Type of element; static or meter
      type=static
      x=700
      y=100
      z=0
      ; Size of quad
      width=128
      height=128
      ; Image
      image=rpm1.tga
      ; Don't deform when displayed in a 16:9 resolution?
      keep_aspect=1
    }
    elt1
    {
      type=angular
      x=699
      y=120
      z=0
      ; Size
      width=8
      height=64
      image=rpm1_needle.tga
      ; Variable to measure
      var=rpm
      ; Variable value range
      min_value=0
      max_value=12000
      ; Angle range of rotation
      min_angle=135
      max_angle=-135
      ; Pivot point
      pivot_x=0
      pivot_y=-20
    }
    elt2
    {
      type=time
      x=540
      y=100
      var=laptime
    }
    elt3
    {
      type=time
      x=540
      y=80
      var=intermediate
      ;var=besttime
    }
    elt4
    {
      ; Type of element; static or meter
      type=static
      x=100
      y=100
      z=0
      ; Size of quad
      width=128
      height=128
      ; Image
      image=kmh1.tga
    }
    elt5
    {
      type=digital
      x=160
      y=85
      ; Font
      image=viewfont.tga
      src_char_wid=42
      src_char_hgt=42
      src_char_x0=0
      src_char_y0=0
      char_wid=50
      char_hgt=30
      ; Letter spacing
      char_dx=16
      var=velocity
      ; From m/s to kmh
      factor=3.6
    }
    elt6
    {
      type=static
      x=400-64
      y=100
      width=128
      height=128
      image=view_xy.tga
    }
    elt7
    {
      type=linear
      x=400
      y=100
      width=2
      height=16
      image=view_linear_line_v.tga
      var=gforce_lat
      min_value=-2
      max_value=2
      ; Min/max coordinate relative to x/y, and orientation (h/v)
      orientation=h
      min_offset=-55
      max_offset=55
    }
    elt8
    {
      type=linear
      x=400-64
      y=100
      width=16
      height=2
      image=view_linear_line_h.tga
      var=gforce_lon
      min_value=-2
      max_value=2
      ; Min/max coordinate relative to x/y, and orientation (h/v)
      orientation=v
      min_offset=55
      max_offset=-55
    }
    elt9
    {
      type=angular
      x=299
      y=120
      z=0
      ; Size
      width=8
      height=64
      image=rpm1_needle.tga
      ; Variable to measure
      var=velocity
      ; Variable value range (m/s)
      min_value=0
      max_value=66.7
      ; Angle range of rotation
      min_angle=135
      max_angle=-135
      ; Pivot point
      pivot_x=0
      pivot_y=-20
    }
    elt10
    {
      ; A real-world velocity indicator
      type=angular
      x=99
      y=120
      z=0
      ; Size
      width=6
      height=40
      image=rpm1_needle.tga
      ; Variable to measure
      var=velocity_wc
      ; Variable value range (m/s)
      min_value=0
      max_value=66.7
      ; Angle range of rotation
      min_angle=135
      max_angle=-135
      ; Pivot point
      pivot_x=0
      pivot_y=-20
    }
    elt11
    {
      ; Backdrop for fuel meter
      type=static
      x=700
      y=300
      z=0
      ; Size of quad
      width=128
      height=128
      ; Image
      image=rpm1.tga
      keep_aspect=1
    }
    elt12
    {
      ; Fuel dial
      type=angular
      x=699
      y=320
      z=0
      ; Size
      width=8
      height=64
      image=rpm1_needle.tga
      ; Variable to measure
      var=fuel
      ; Variable value range
      min_value=0
      max_value=1
      ; Angle range of rotation
      min_angle=135
      max_angle=-135
      ; Pivot point
      pivot_x=0
      pivot_y=-20
    }
    elt13
    {
      type=digital
      x=160
      y=185
      ; Font
      image=viewfont.tga
      src_char_wid=42
      src_char_hgt=42
      src_char_x0=0
      src_char_y0=0
      char_wid=30
      char_hgt=30
      ; Letter spacing
      char_dx=16
      var=fuel
      format=float_1
      digits=5
      ; From 0..1 to a nicer value
      factor=100
    }
    elt14
    {
      var=fuel_avg_consumption
      type=digital
      x=160
      y=235
      ; Font
      image=viewfont.tga
      src_char_wid=42
      src_char_hgt=42
      src_char_x0=0
      src_char_y0=0
      char_wid=30
      char_hgt=30
      ; Letter spacing
      char_dx=16
      format=float_1
    }
    elt15
    {
      var=rpm
      ;var=fuel_inst_consumption
      type=digital
      x=160
      y=285
      ; Font
      image=viewfont.tga
      src_char_wid=42
      src_char_hgt=42
      src_char_x0=0
      src_char_y0=0
      char_wid=30
      char_hgt=30
      ; Letter spacing
      char_dx=16
      format=float_1
    }
    elt16
    {
      var=time_of_day
      x=540
      y=150
      type=digital
      format=time_of_day
      ; Font
      image=viewfont.tga
      src_char_wid=42
      src_char_hgt=42
      src_char_x0=0
      src_char_y0=0
      char_wid=30
      char_hgt=30
      ; Letter spacing
      char_dx=16
    }
    elt17
    {
      var=rpm_warning
      type=digital
      x=160
      y=315
      ; Font
      image=viewfont.tga
      src_char_wid=42
      src_char_hgt=42
      src_char_x0=0
      src_char_y0=0
      char_wid=20
      char_hgt=20
      ; Letter spacing
      char_dx=16
      format=simple
      digits=1
      ; From 0..1 to a nicer value
      factor=9
    }
    _elt10
    {
      type=angular
      x=699
      y=120
      z=0
      ; Size
      width=6
      height=40
      image=rpm1_needle.tga
      ; Variable to measure
      var=gearbox_vel
      ; Variable value range
      min_value=0
      max_value=12000
      ; Angle range of rotation
      min_angle=135
      max_angle=-135
      ; Pivot point
      pivot_x=0
      pivot_y=-20
    }
    _elt8
    {
      type=static
      x=400-100
      y=100
      width=128
      height=32
      image=view_linear_hor.tga
    }
    _elt9
    {
      type=digital
      x=160
      y=105
      ; Font
      image=viewfont.tga
      src_char_wid=42
      src_char_hgt=42
      src_char_x0=0
      src_char_y0=0
      char_wid=30
      char_hgt=30
      ; Letter spacing
      char_dx=16
      var=brake_help_active
      ;var=odometer
    }
  }
}

