string x = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors X Resolution", "Please enter your monitors X Resolution", "1920", 0, 0);
string x = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors X Resolution", "Please enter your monitors X Resolution", "1920", 0, 0);
try
try
{
{
int ix = Convert.ToInt32(x);
int ix = Convert.ToInt32(x);
Properties.Settings.Default.ResX = ix;
Properties.Settings.Default.ResX = ix;
Properties.Settings.Default.Save();
Properties.Settings.Default.Save();
Properties.Settings.Default.Reload();
Properties.Settings.Default.Reload();
break;
break;
} catch
} catch
{
{
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number",Microsoft.VisualBasic.MsgBoxStyle.Information,"Invalid value");
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number",Microsoft.VisualBasic.MsgBoxStyle.Information,"Invalid value");
}
}
}
}
while (true)
while (true)
{
{
string y = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors Y Resolution", "Please enter your monitors Y Resolution", "1080", 0, 0);
string y = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors Y Resolution", "Please enter your monitors Y Resolution", "1080", 0, 0);
try
try
{
{
int iy = Convert.ToInt32(y);
int iy = Convert.ToInt32(y);
Properties.Settings.Default.ResY = iy;
Properties.Settings.Default.ResY = iy;
Properties.Settings.Default.Save();
Properties.Settings.Default.Save();
Properties.Settings.Default.Reload();
Properties.Settings.Default.Reload();
break;
break;
}
}
catch
catch
{
{
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number", Microsoft.VisualBasic.MsgBoxStyle.Information, "Invalid value");
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number", Microsoft.VisualBasic.MsgBoxStyle.Information, "Invalid value");
}
}
}
}
}
}
var sfx = Properties.Settings.Default.ResX / 1920.0;
var sfx = Properties.Settings.Default.ResX / 1920.0;
var sfy = Properties.Settings.Default.ResY / 1080.0;
var sfy = Properties.Settings.Default.ResY / 1080.0;
int currentlyplaying = 0; // 0=nothing 1=title 2=menu 3=victory
int currentlyplaying = 0; // 0=nothing 1=title 2=menu 3=victory
string x = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors X Resolution", "Please enter your monitors X Resolution", "1920", 0, 0);
string x = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors X Resolution", "Please enter your monitors X Resolution", "1920", 0, 0);
try
try
{
{
int ix = Convert.ToInt32(x);
int ix = Convert.ToInt32(x);
Properties.Settings.Default.ResX = ix;
Properties.Settings.Default.ResX = ix;
Properties.Settings.Default.Save();
Properties.Settings.Default.Save();
Properties.Settings.Default.Reload();
Properties.Settings.Default.Reload();
break;
break;
}
}
catch
catch
{
{
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number", Microsoft.VisualBasic.MsgBoxStyle.Information, "Invalid value");
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number", Microsoft.VisualBasic.MsgBoxStyle.Information, "Invalid value");
}
}
}
}
while (true)
while (true)
{
{
string y = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors Y Resolution", "Please enter your monitors Y Resolution", "1080", 0, 0);
string y = Microsoft.VisualBasic.Interaction.InputBox("Please enter your monitors Y Resolution", "Please enter your monitors Y Resolution", "1080", 0, 0);
try
try
{
{
int iy = Convert.ToInt32(y);
int iy = Convert.ToInt32(y);
Properties.Settings.Default.ResY = iy;
Properties.Settings.Default.ResY = iy;
Properties.Settings.Default.Save();
Properties.Settings.Default.Save();
Properties.Settings.Default.Reload();
Properties.Settings.Default.Reload();
break;
break;
}
}
catch
catch
{
{
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number", Microsoft.VisualBasic.MsgBoxStyle.Information, "Invalid value");
Microsoft.VisualBasic.Interaction.MsgBox("The value you entered was not a valid value. Please enter a number", Microsoft.VisualBasic.MsgBoxStyle.Information, "Invalid value");
}
}
}
}
Microsoft.VisualBasic.Interaction.MsgBox("Please Restart the program", Microsoft.VisualBasic.MsgBoxStyle.Information, "Restart required");
Microsoft.VisualBasic.Interaction.MsgBox("Please Restart the program", Microsoft.VisualBasic.MsgBoxStyle.Information, "Restart required");