Exemple #1
0
        public Dashboard(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Dashboard.DisplayUnitMetric", false);

            Base.AddAction("SwitchDisplayUnit", (a, b) =>
            {
                Base.Settings.DashUnitMetric = !Base.Settings.DashUnitMetric;
            });
        }
Exemple #2
0
        public JobStatus(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Job.Status", "");
            Base.AddProp("Job.InProgress", false);

            Base.AddAction("JobStatusReset", (a, b) => { JobStatusReset(); });

            Base.AddEvent("JobTaken");
            Base.AddEvent("JobLoading");
            Base.AddEvent("JobOngoing");
            Base.AddEvent("JobCompleted");
            Base.AddEvent("JobAbandoned");
            Base.AddEvent("JobReset");
        }