-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathModInfo.cs
More file actions
28 lines (21 loc) · 816 Bytes
/
ModInfo.cs
File metadata and controls
28 lines (21 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using ColossalFramework;
using ICities;
namespace CargoInfoMod
{
public class ModInfo : IUserMod
{
public const string Namespace = "com.github.rumkex.cargomod";
public string Name => "Cargo Info";
public string Description => "Displays statistics panel for Cargo Stations service view and allows monitoring cargo dynamics";
internal CargoData data;
internal Options Options = new Options();
public void OnSettingsUI(UIHelperBase helper)
{
helper.AddCheckbox("Use months instead of weeks", Options.UseMonthlyValues, state => Options.UseMonthlyValues.value = state);
}
}
public class Options
{
public SavedBool UseMonthlyValues = new SavedBool("useMonthlyCargoValues", Settings.gameSettingsFile);
}
}