-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAdvancedRoadTools.cs
More file actions
55 lines (54 loc) · 1.46 KB
/
Copy pathAdvancedRoadTools.cs
File metadata and controls
55 lines (54 loc) · 1.46 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using ICities;
using System.IO;
using ColossalFramework.UI;
using ColossalFramework;
using System;
using AdvancedRoadTools.Util;
using AdvancedRoadTools.UI;
using AdvancedRoadTools.NewData;
using System.Reflection;
using System.Collections.Generic;
namespace AdvancedRoadTools
{
public class AdvancedRoadTools : IUserMod
{
public static bool IsEnabled = false;
public string Name
{
get { return "AdvancedRoadTools"; }
}
public string Description
{
get { return "Can build more complex curve"; }
}
public void OnEnabled()
{
IsEnabled = true;
FileStream fs = File.Create("AdvancedRoadTools.txt");
fs.Close();
}
public void OnDisabled()
{
IsEnabled = false;
}
public AdvancedRoadTools()
{
try
{
if (GameSettings.FindSettingsFileByName("AdvancedRoadTools_SETTING") == null)
{
// Creating setting file
GameSettings.AddSettingsFile(new SettingsFile { fileName = "AdvancedRoadTools_SETTING" });
}
}
catch (Exception)
{
DebugLog.LogToFileOnly("Could not load/create the setting file.");
}
}
public void OnSettingsUI(UIHelperBase helper)
{
OptionUI.makeSettings(helper);
}
}
}