File tree Expand file tree Collapse file tree 4 files changed +25
-4
lines changed
Expand file tree Collapse file tree 4 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public static void Shutdown()
7373 {
7474 if ( UiLagWindow . IsLoaded )
7575 {
76- UiLagWindow . Close ( ) ;
76+ UiLagWindow . RealClose ( ) ;
7777 }
7878
7979 }
Original file line number Diff line number Diff line change 22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 Title =" " Width =" 382" WindowStyle =" SingleBorderWindow" SizeToContent =" Height"
5- Background =" White" >
5+ Background =" White" ShowInTaskbar = " False " ResizeMode = " NoResize " >
66 <StackPanel >
77 <Border Padding =" 10 5" >
88 <StackPanel >
9- <TextBlock Foreground =" SteelBlue" FontWeight =" Bold" FontSize =" 18" HorizontalAlignment =" Center" >OCTGN Is Lagging</TextBlock >
9+ <TextBlock Foreground =" SteelBlue" FontWeight =" Bold" FontSize =" 18" HorizontalAlignment =" Center" >OCTGN Is Frozen</TextBlock >
10+ <TextBlock FontWeight =" Bold" >This has nothing to do with your internet connection.</TextBlock >
1011 <TextBlock FontWeight =" Bold" >Don't worry, you're still connected to your game.</TextBlock >
1112 <Rectangle Height =" 10" />
1213 <TextBlock FontWeight =" Bold" >This is happening for one of the following reasons</TextBlock >
Original file line number Diff line number Diff line change 11using System ;
2+ using System . ComponentModel ;
23using System . Runtime . InteropServices ;
34using System . Windows ;
45using System . Windows . Interop ;
@@ -8,6 +9,8 @@ namespace Octgn.Windows
89{
910 public partial class UiLagWindow
1011 {
12+ private bool _isClosing ;
13+
1114 [ DllImport ( "user32.dll" ) ]
1215 [ return : MarshalAs ( UnmanagedType . Bool ) ]
1316 static extern bool GetWindowRect ( HandleRef hWnd , out RECT lpRect ) ;
@@ -67,5 +70,21 @@ public void HideLagWindow()
6770 }
6871 this . Hide ( ) ;
6972 }
73+
74+ public void RealClose ( )
75+ {
76+ this . _isClosing = true ;
77+ this . Close ( ) ;
78+ }
79+
80+ protected override void OnClosing ( CancelEventArgs e )
81+ {
82+ if ( _isClosing == false )
83+ {
84+ e . Cancel = true ;
85+ return ;
86+ }
87+ base . OnClosing ( e ) ;
88+ }
7089 }
7190}
Original file line number Diff line number Diff line change 1-
1+ Updated lag window so it isn't cloasable - Kelly
2+ Changed some text in the window - Kelly
You can’t perform that action at this time.
0 commit comments