Skip to content

Commit

Permalink
let user change the time between appearance again
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Dec 10, 2017
1 parent a4fb938 commit bce9afc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Minimap Training/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
</startup>
<userSettings>
<Minimap_Training.Properties.Settings>
<setting name="x1" serializeAs="String">
<value>1000</value>
</setting>
<setting name="y1" serializeAs="String">
<value>1000</value>
</setting>
Expand All @@ -32,9 +35,6 @@
<setting name="maxTime" serializeAs="String">
<value>60000</value>
</setting>
<setting name="x1" serializeAs="String">
<value>1000</value>
</setting>
<setting name="Color" serializeAs="String">
<value>Red</value>
</setting>
Expand Down
14 changes: 12 additions & 2 deletions Minimap Training/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,26 @@ static void Main()
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Console.WriteLine("Use previous settings?");
if (Console.ReadLine() != "yes")
if (Console.ReadLine().ToLower() != "yes")
{
Console.WriteLine("Please click on the top left of your minimap.");
Application.Run(new CoordInput());

Console.WriteLine("Custom Color?");
if (Console.ReadLine() == "yes")
if (Console.ReadLine().ToLower() == "yes")
{
new ColorInput();
}

Console.WriteLine("Custom times between appearances? (I recommend using the defaults.)");
if (Console.ReadLine().ToLower() == "yes")
{
Console.WriteLine("Please enter minimum time (in seconds).");
Properties.Settings.Default.minTime = 1000 * Int32.Parse(Console.ReadLine());
Console.WriteLine("Please enter maximum time (in seconds).");
Properties.Settings.Default.maxTime = 1000 * Int32.Parse(Console.ReadLine());
}

Properties.Settings.Default.Save(); //save user settings
}
Console.WriteLine("Starting!");
Expand Down

0 comments on commit bce9afc

Please sign in to comment.