Skip to content

Commit

Permalink
Fixed forms opening in random spots.
Browse files Browse the repository at this point in the history
  • Loading branch information
GittyMac committed Dec 4, 2021
1 parent 376ecd5 commit c53ed9d
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 48 deletions.
10 changes: 0 additions & 10 deletions FunkeySelector/CustomFManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,5 @@ class CustomFManager
}
//It saves a lot of time to have a simple function to call rather than individual statements.
}

public void changeToNoHub() //This will change the main.swf to the No Hub mod.
{

}

public void changeToHub() //This will change the main.swf to the default Hub mode.
{

}
}
}
36 changes: 24 additions & 12 deletions FunkeySelector/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,17 @@ private void button1_Click_1(object sender, EventArgs e)
{
Form2 funktown = new Form2();
this.Hide();
funktown.Show();
funktown.StartPosition = FormStartPosition.CenterParent;
funktown.ShowDialog(this);
}

//Kelpy Basin
private void button2_Click(object sender, EventArgs e)
{
Form3 kelp = new Form3();
this.Hide();
kelp.Show();
kelp.StartPosition = FormStartPosition.CenterParent;
kelp.ShowDialog(this);
}

//Exit (Again)
Expand All @@ -154,23 +156,26 @@ private void button3_Click(object sender, EventArgs e)
{
Form4 magma = new Form4();
this.Hide();
magma.Show();
magma.StartPosition = FormStartPosition.CenterParent;
magma.ShowDialog(this);
}

//Laputta Station
private void button4_Click(object sender, EventArgs e)
{
Form5 laput = new Form5();
this.Hide();
laput.Show();
laput.StartPosition = FormStartPosition.CenterParent;
laput.ShowDialog(this);
}

//Funkiki Island
private void button5_Click(object sender, EventArgs e)
{
Form6 funkiki = new Form6();
this.Hide();
funkiki.Show();
funkiki.StartPosition = FormStartPosition.CenterParent;
funkiki.Show(this);
}


Expand All @@ -179,39 +184,44 @@ private void button6_Click(object sender, EventArgs e)
{
Form7 rrc = new Form7();
this.Hide();
rrc.Show();
rrc.StartPosition = FormStartPosition.CenterParent;
rrc.ShowDialog(this);
}

//Nightmare Rift
private void button7_Click(object sender, EventArgs e)
{
Form8 nightmare = new Form8();
this.Hide();
nightmare.Show();
nightmare.StartPosition = FormStartPosition.CenterParent;
nightmare.ShowDialog(this);
}

//Daydream Oasis
private void button8_Click(object sender, EventArgs e)
{
Form9 daydream = new Form9();
this.Hide();
daydream.Show();
daydream.StartPosition = FormStartPosition.CenterParent;
daydream.ShowDialog(this);
}

//Hidden Realm
private void button9_Click(object sender, EventArgs e)
{
Form10 hrf = new Form10();
this.Hide();
hrf.Show();
hrf.StartPosition = FormStartPosition.CenterParent;
hrf.ShowDialog(this);
}

//Paradox Green
private void button10_Click(object sender, EventArgs e)
{
Form11 paradox = new Form11();
this.Hide();
paradox.Show();
paradox.StartPosition = FormStartPosition.CenterParent;
paradox.ShowDialog(this);
}

//U.B.
Expand All @@ -225,7 +235,8 @@ private void Button13_Click(object sender, EventArgs e)
{
Form12 unused = new Form12();
this.Hide();
unused.Show();
unused.StartPosition = FormStartPosition.CenterParent;
unused.ShowDialog(this);
}

//Insert Custom ID
Expand All @@ -239,7 +250,8 @@ private void button16_Click(object sender, EventArgs e)
{
Form13 customf = new Form13();
this.Hide();
customf.Show();
customf.StartPosition = FormStartPosition.CenterParent;
customf.ShowDialog(this);
}

//Options
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form10.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Singe
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form11.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Rastro
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form12.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ private void Button9_Click(object sender, EventArgs e)
private void Button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Close
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form13.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ private void button2_Click(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Will select Funkey when listbox item is selected.
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Scratch
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Glub
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ private void button11_Click(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Close
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ private void button14_Click(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Close
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form6.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Flurry
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form7.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Racer X
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Ptep
Expand Down
5 changes: 3 additions & 2 deletions FunkeySelector/Form9.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ protected override void WndProc(ref Message m) //Allows the window to be dragged
private void button1_Click(object sender, EventArgs e)
{
Form1 form1 = new Form1();
this.Close();
form1.Show();
this.Hide();
form1.StartPosition = FormStartPosition.CenterParent;
form1.ShowDialog(this);
}

//Dyer
Expand Down
4 changes: 2 additions & 2 deletions FunkeySelector/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]

0 comments on commit c53ed9d

Please sign in to comment.