Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 687f58b

Browse files
committed
Long due refactoring - properly naming dialogs
1 parent 04e685b commit 687f58b

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

‎Source/ModuleManagerWatchDog/GUI/FatalError.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You should have received a copy of the SKL Standard License 1.0
2020

2121
namespace KSPe.Common.Dialogs
2222
{
23-
public class ShowStopperAlertBox : AbstractDialog
23+
public class ShowStopperErrorBox : AbstractDialog
2424
{
2525
private static readonly string aMSG = "close KSP and then fix the problem described above";
2626

@@ -39,7 +39,7 @@ public static void Show(string errorMessage)
3939

4040
public static void Show(string errorMessage, string actionMessage, Action lambda)
4141
{
42-
GameObject go = new GameObject("KSPe.Common.Diallgs.ShowStopperAlertBox");
42+
GameObject go = new GameObject("KSPe.Common.Diallgs.ShowStopperErrorBox");
4343
MessageBox dlg = go.AddComponent<MessageBox>();
4444

4545
//GUIStyle win = new GUIStyle(HighLogic.Skin.window)

‎Source/ModuleManagerWatchDog/GUI/ShowStopperAlertBox.cs‎ renamed to ‎Source/ModuleManagerWatchDog/GUI/ShowStopperErrorBox.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ You should have received a copy of the SKL Standard License 1.0
1818

1919
namespace WatchDog.ModuleManager.GUI.Dialogs
2020
{
21-
internal static class ShowStopperAlertBox
21+
internal static class ShowStopperErrorBox
2222
{
2323
private static readonly string AMSG = @"to get instructions about how to Download and Install Module Manager.";
2424

2525
internal static void Show(string msg)
2626
{
27-
KSPe.Common.Dialogs.ShowStopperAlertBox.Show(
27+
KSPe.Common.Dialogs.ShowStopperErrorBox.Show(
2828
msg,
2929
AMSG,
3030
() => { Application.OpenURL("https://ksp.lisias.net/add-ons/ModuleManager/WatchDog/KNOWN_ISSUES"); Application.Quit(); }

‎Source/ModuleManagerWatchDog/InstallChecker.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ internal void Execute()
6464
catch (Exception e)
6565
{
6666
Log.error(e.ToString());
67-
GUI.Dialogs.ShowStopperAlertBox.Show(e.ToString());
67+
GUI.Dialogs.ShowStopperErrorBox.Show(e.ToString());
6868
}
6969
}
7070

@@ -77,10 +77,10 @@ private void Handle(string msg)
7777
if (null != msg2)
7878
GUI.Dialogs.ShowRebootTheGameAlertBox.Show(msg2);
7979
else
80-
GUI.Dialogs.ShowStopperAlertBox.Show(msg);
80+
GUI.Dialogs.ShowStopperErrorBox.Show(msg);
8181
}
8282
else if (null != msg)
83-
GUI.Dialogs.ShowStopperAlertBox.Show(msg);
83+
GUI.Dialogs.ShowStopperErrorBox.Show(msg);
8484
else if (!Globals.Instance.IsValid)
8585
{
8686
// If we get here, we have a sane installment. Let's remember how the user wants his installment, so
@@ -97,7 +97,7 @@ private void HandledAutoFix()
9797
if (null != msg)
9898
GUI.Dialogs.ShowRebootTheGameAlertBox.Show(msg);
9999
else
100-
GUI.Dialogs.ShowStopperAlertBox.Show(msg);
100+
GUI.Dialogs.ShowStopperErrorBox.Show(msg);
101101
}
102102

103103
private const string ASSEMBLY_NAME = "ModuleManager";

‎Source/ModuleManagerWatchDog/ModuleManagerWatchDog.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<DependentUpon>Version.tt</DependentUpon>
4646
</Compile>
4747
<Compile Include="Util\Log.cs" />
48-
<Compile Include="GUI\ShowStopperAlertBox.cs" />
4948
<Compile Include="GUI\Abstract.cs" />
5049
<Compile Include="GUI\MessageBox.cs" />
5150
<Compile Include="GUI\FatalError.cs" />
@@ -60,6 +59,7 @@
6059
<Compile Include="Util\SelfCleaning.cs" />
6160
<Compile Include="GUI\OptionBox.cs" />
6261
<Compile Include="GUI\SelectMMForkOptionBox.cs" />
62+
<Compile Include="GUI\ShowStopperErrorBox.cs" />
6363
</ItemGroup>
6464
<ItemGroup>
6565
<None Include="Properties\Version.tt">

‎Source/WatchDogForInterstellarRedist/GUI/ShowStopperAlertBox.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal static class ShowStopperAlertBox
2424

2525
internal static void Show(string msg)
2626
{
27-
KSPe.Common.Dialogs.ShowStopperAlertBox.Show(
27+
KSPe.Common.Dialogs.ShowStopperErrorBox.Show(
2828
msg,
2929
AMSG,
3030
() => { Application.OpenURL("https://ksp.lisias.net/add-ons/WatchDog/InterstellarRedist"); Application.Quit(); }

‎Source/WatchDogForScaleRedist/GUI/ShowStopperAlertBox.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal static class ShowStopperAlertBox
2424

2525
internal static void Show(string msg)
2626
{
27-
KSPe.Common.Dialogs.ShowStopperAlertBox.Show(
27+
KSPe.Common.Dialogs.ShowStopperErrorBox.Show(
2828
msg,
2929
AMSG,
3030
() => { Application.OpenURL("https://ksp.lisias.net/add-ons/WatchDog/ScaleRedist"); Application.Quit(); }

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /