Skip to content

Commit

Permalink
added things
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewCromar committed Jan 18, 2024
1 parent 3138b7b commit de02795
Show file tree
Hide file tree
Showing 10 changed files with 150 additions and 146 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified ONYX Launcher/.vs/ONYX Launcher/v17/.suo
Binary file not shown.
273 changes: 140 additions & 133 deletions ONYX Launcher/ONYX Launcher/Main.Designer.cs

Large diffs are not rendered by default.

23 changes: 10 additions & 13 deletions ONYX Launcher/ONYX Launcher/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,30 @@ private void btn_minimize_Click(object sender, EventArgs e)

private void btn_games_Click(object sender, EventArgs e)
{
HideAllPanles();
pnl_games.Size = new Size(960, 480);
pnl_games.Location = new Point(0, 60);
pnl_games.Visible = true;
EnabelPage(pnl_games, new Point(79, 39));

}

private void btn_news_Click(object sender, EventArgs e)
{
HideAllPanles();
pnl_news.Size = new Size(960, 480);
pnl_news.Location = new Point(0, 60);
pnl_news.Visible = true;
EnabelPage(pnl_news, new Point(160, 39));
}

private void btn_settings_Click(object sender, EventArgs e)
{
HideAllPanles();
pnl_settings.Size = new Size(960, 480);
pnl_settings.Location = new Point(0, 60);
pnl_settings.Visible = true;
EnabelPage(pnl_settings, new Point(241, 39));
}

private void HideAllPanles()
private void EnabelPage(Panel pnl, Point underline_location)
{
pnl_games.Visible = false;
pnl_news.Visible = false;
pnl_settings.Visible = false;

pnl.Size = new Size(960, 480);
pnl.Location = new Point(0, 60);
pnl.Visible = true;
lbl_underline.Location = underline_location;
}

private void CenterFormOnScreen()
Expand Down
Binary file modified ONYX Launcher/ONYX Launcher/bin/Debug/ONYX Launcher.exe
Binary file not shown.
Binary file modified ONYX Launcher/ONYX Launcher/bin/Debug/ONYX Launcher.pdb
Binary file not shown.
Binary file not shown.
Binary file modified ONYX Launcher/ONYX Launcher/obj/Debug/ONYX Launcher.exe
Binary file not shown.
Binary file modified ONYX Launcher/ONYX Launcher/obj/Debug/ONYX Launcher.pdb
Binary file not shown.

0 comments on commit de02795

Please sign in to comment.