Skip to content

Commit 8486ae8

Browse files
committed
v1.2.2
Fullscreen mode added to Game Window ( F11 to change mode )
1 parent cbfb2a7 commit 8486ae8

File tree

65 files changed

+17498
-1397
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+17498
-1397
lines changed

.vs/SF-Client/v16/.suo

26 KB
Binary file not shown.

SF-Client.sln

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Global
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1616
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Debug|Any CPU.ActiveCfg = Release|Any CPU
1717
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Debug|Any CPU.Build.0 = Release|Any CPU
18-
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Debug|x86.ActiveCfg = Release|x86
19-
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Debug|x86.Build.0 = Release|x86
20-
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Release|Any CPU.ActiveCfg = Release|x86
21-
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Release|Any CPU.Build.0 = Release|x86
18+
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Debug|x86.ActiveCfg = Debug|Any CPU
19+
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Debug|x86.Build.0 = Debug|Any CPU
20+
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Release|Any CPU.Build.0 = Release|Any CPU
2222
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Release|x86.ActiveCfg = Release|x86
2323
{EC147590-4E10-4F76-93D1-C4832EAA46B5}.Release|x86.Build.0 = Release|x86
2424
EndGlobalSection

SF-Client/$this.Icon.ico

-48.5 KB
Binary file not shown.

SF-Client/Deathbull.ico

123 KB
Binary file not shown.

SF-Client/FlashPlayer.Designer.cs

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SF-Client/FlashPlayer.cs

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using MetroFramework.Forms;
2-
using System;
1+
using System;
32
using System.Windows.Forms;
43

54
namespace SF_Client
65
{
7-
public partial class FlashPlayer : MetroForm
6+
public partial class FlashPlayer : Form
87
{
98
public FlashPlayer()
109
{
@@ -69,6 +68,28 @@ private void axShockwaveFlash1_PreviewKeyDown(object sender, PreviewKeyDownEvent
6968
RestartFlashPlayer();
7069
}
7170
}
71+
if (e.KeyData == Keys.F11)
72+
{
73+
if (this.FormBorderStyle == FormBorderStyle.None)
74+
GoFullscreen(false);
75+
else
76+
GoFullscreen(true);
77+
}
78+
}
79+
80+
private void GoFullscreen(bool fullscreen)
81+
{
82+
if (fullscreen)
83+
{
84+
this.WindowState = FormWindowState.Normal;
85+
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
86+
this.Bounds = Screen.PrimaryScreen.Bounds;
87+
}
88+
else
89+
{
90+
this.WindowState = FormWindowState.Maximized;
91+
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
92+
}
7293
}
7394
}
7495
}

SF-Client/FlashPlayer.resx

Lines changed: 1943 additions & 666 deletions
Large diffs are not rendered by default.

SF-Client/Main.Designer.cs

Lines changed: 42 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SF-Client/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private void Login_Click(object sender, EventArgs e)
6262
else
6363
{
6464
metroTabControl1.SelectedIndex = 0;
65-
webBrowser1.Navigate("http://www.seafight.com");
65+
webBrowser1.Navigate("http://www.seafight.com/");
6666
return;
6767
}
6868
}

0 commit comments

Comments
 (0)