﻿Description:
  Line Statistics Plus(by kugutsu)
  version: 5.7
  A new panel that shows line statistics by table and graph with fully customizable in-game options.

  Table column list(19 all):
    Average waiting passengers(text color indicates Average mood)
    Carried passengers
    Normal passengers
    Fare dodgers(caught)
    Fare dodgers
    Transit Passengers
    Income
    Income from tickets
    Income from fines
    Loss
    Vehicles
    Stops
    Energy cost
    Vehicle maintenance cost
    Stop maintenance cost
    Wage cost
    All cost
    Profit
    Profit per passenger

  Graph type list(13 all. 60 months data):
    Average waiting passengers
    Carried passengers
    Normal passengers
    Fare dodgers(caught)
    Fare dodgers
    Transit Passengers
    Income
    Income from tickets
    Income from fines
    Loss
    All cost
    Profit
    Profit per passenger

  In-game options:
    Panel customization: panel hotkey, drag to change panel position, panel height, panel color&transparency, line button transparency.
    Table customization: show/hide column, column order, text color, row height.
    Game play assistance(can be disabled): 
      custom-designed vehicle info box(show line number, current passengers, capacity with distinguishable color), 
      mouse left on vehicle info box to select its line, 
      mouse right on vehicle info box to open the line's vehicle panel,
      move camera to the center of the line whenever select a line.
    And other delicate options.
    All settings will be saved into file under folder "\Cities In Motion" located in your user's document folder.
  
  Additional panel: Line Color Manager

Install：
  Copy folder "\addons" to the game's installation folder.
  For Steam user: Steam\steamapps\common\cities in motion\.
  If you have installed any version that below 5.6, delete all the files belong to that version first, that is:
    folder "metro\addons\linestatisticsplus" and file "metro\ui\linepanel\linepanel.script".

Note:
  Default hotkey for this panel is "6", you can change it in option menu.
  Any other Mod that uses "metro\ui\linepanel\linepanel.script" will not work properly, unless this Mod is disabled.
  Please Do NOT rename the .gs file.
  About settings file loading priority, the Mod will auto use the settings files in game installation folder if they exist.

Change log:
  2012.8.21 ver5.7
    - No more stuttering after loading screen
    - fixed a camera issue with Ultimate Camera Control
	- now if you move the settings file from user document folder to the game folder(\Steam\steamapps\common\cities in motion\, etc), this mod will only use the settings file in the game folder, and ignore those in user document folder
    
  2012.3.19 ver5.6
    - now this Mod is a clean addon, no "\metro" folder anymore(thanks to RBBoT)
    - packed this Mod to a single .gs file
    - adjusted several buttons' position
    - the name of settings file has been changed from settings_LM.script to settings_LSP.script

  2011.8.5 ver5.5
    - fixed a minor bug
    - changed some UI refreshing algorithm, optimized a little

  2011.07.19 ver5.4
    - added vehicle info box style 2. Toggle style in Option.
    - updated Line color manager to ver1.3. Now name color in vehicle info box style 2 can be changed.

  2011.07.18 ver5.3
    - updated Line color manager to ver1.2. Now route color on the map can also be changed.
    - added several options to Line color manager

  2011.07.15 ver5.2
    - added Line color manager panel, by which you can change line vehicles' color

  2011.07.12 ver5.0
    - added column:  Normal passengers, Fare dodgers(caught), Fare dodgers, Transit Passengers, Income from tickets, Income from fines, Loss
    - added graph type: Normal passengers, Fare dodgers(caught), Fare dodgers, Transit Passengers, Income from tickets, Income from fines, Loss
    - added a option layer to fully change every setting in game
    - added features: behavior of mouse left&right click on vehicle info box.

  2011.07.01 ver4.5
    - added a new column: number of average waiting passengers. Color(green, yellow, orange, red) of the text indicates average mood of passengers
    - added two graph types: average waiting passengers, line total cost
    - now wage column calculates the wage of all types of employee(drivers, inspectors, technical personnel, and office staff). In previous version this column is only for driver wage. 
    - now you can change the type of each mini graph by clicking the button at the graph's bottom right corner
    - added a button to show line vehicles panel
    - added a button to line panel and line vehicles panel to toggle this panel. You can diable it in game.script
    - a few adjustments to the UI
    - compatible with game version 1.0.20 and 1.0.19

  2011.06.26 ver1.0.19_4.0 Graph!
    - added graph feature. 4 types of graphs show each line's statistics for the latest 60 months.
    - fixed the major bug (income not really match passengers count) which caused by the game mechanism that income is updated when passengers enter vehicles while passengers count is updated when they leave vehicles.
    - now when you delete vehicles from a line ,the vehicle's income and passengers count will be recorded to the line data
    - now when you pause a line, the count of "disappeared" passengers will be recorded to line data
    - added a slider to change row height in game
    - added an option button, when enabled row height changes between a range automaticly
    - added 2 buttons which toggle between table view, graph view and switching graph layout
    - added 4 buttons for choosing graph types
    - added 2 sliders, changing graph horizontal scale and graph background transparency
    - added 2 buttons for graph related settings
    - moved the scrollbar to left near the line buttons
    - moved the option buttons to bottom right
    - combined the vehicle info box mod made by RoB and Coneman.(linepanel.script has been modified in order to fix the major bug, which could cause conflict between the two mods).This mod can be disabled by deleting a file.

  2011.06.19 ver1.0.19_3.0
    - fixed a bug that some column's value changes when you add or delete vehicles or stops in a line. Now values completely indicate the state of last month.
    - changed the main part of this mod, now works more efficiently
    - added sort feature
    - added a new column which shows profit per passenger 
    - added a new option button. If enabled, panel appears when a month ends
    - all options are predefined to false except the new option
    - added colors to line button text which can be disabled in game.script
    - added a secondary hotkey which can be defined in game.script
    - added a setting in game.script by which you can change line button height
    - changed some icons and column position

  2011.06.13 ver1.0.19_2.0
    - now every action in line panel will also be synchronized to this panel which fixed a lot of bugs
    - now select line in line panel also move your camera to that line. This function can be disabled in game
    - added 2 option buttons to line panel ,same as the 2 buttons in this panel
    - changed vehicle type button similarly to line panel
    - changed row height and cell width
    - changed text position which shows year and month

  2011.06.11 ver1.0.19_1.0
    - bug fixed, now compatible with game version 1.0.19
    - code optimized
    - show title and version number on panel top
    - panel position changed , now it will not cover mini map
    - when select a line, line will be highlighted on mini map, and synchronized  to line panel, make it more convenient to toggle line vehicle panel
    - added 4 option buttons on top right
      button 1: if activated, camera moves to line when select a line
      button 2: if activated, line panel will be shown when select a line
      button 3: if activated, camera zooms out to maximum when camera moves to a line
      button 4: if activated, this panel will be hided when camera moves to a line
    - add a button to the left toolbar which toggles this panel
