Skip to content

Commit

Permalink
Added tooltips to default checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrewThisNoise committed Feb 9, 2021
1 parent 4cc7f81 commit e31f495
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SharedCode/EnvironmentHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public static bool BleedingModeEnabled
bleedingWriter.Close();
if (Directory.Exists($"{experimentalDir}Sideloader Modpack - Bleeding Edge"))
{
if (System.Windows.MessageBox.Show("This will enable experimental updates if any exists for the current game. Please utilize with caution!\n\nDo you want to add experimental zipmods?",
if (System.Windows.MessageBox.Show(
"This will enable experimental updates if any exists for the current game. Please utilize with caution!\n\nDo you want to add experimental zipmods?",
"Enable experimental mods", MessageBoxButton.YesNo, MessageBoxImage.Question) ==
MessageBoxResult.Yes)
{
Expand All @@ -123,7 +124,8 @@ public static bool BleedingModeEnabled
File.Delete(ILikeBleeding);
if (Directory.Exists($"{productionModsDir}Sideloader Modpack - Bleeding Edge"))
{
if (System.Windows.MessageBox.Show("Do you want to move experimental zipmods?\n(They won't be deleted, just moved to another folder and may be reactivated at a later time.)",
if (System.Windows.MessageBox.Show(
"Do you want to move experimental zipmods?\n(They won't be deleted, just moved to another folder and may be reactivated at a later time.)",
"Disable experimental mods", MessageBoxButton.YesNo, MessageBoxImage.Question) ==
MessageBoxResult.Yes)
{
Expand Down
3 changes: 3 additions & 0 deletions src/SharedCode/ToggleAdder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public static void CreatePluginToggles(StackPanel togglePanel)
};
toggleSideloadMaintain.Checked += (sender, args) => EnvironmentHelper.SideloaderMaintainerEnabled = true;
toggleSideloadMaintain.Unchecked += (sender, args) => EnvironmentHelper.SideloaderMaintainerEnabled = false;
toggleSideloadMaintain.ToolTip = "Enable test modpack.\nOnly meant for testing new modpack builds.";
togglePanel.Children.Add(toggleSideloadMaintain);
}

Expand All @@ -211,6 +212,7 @@ public static void CreatePluginToggles(StackPanel togglePanel)
};
toggleConsole.Checked += (sender, args) => EnvironmentHelper.DeveloperModeEnabled = true;
toggleConsole.Unchecked += (sender, args) => EnvironmentHelper.DeveloperModeEnabled = false;
toggleConsole.ToolTip = "Enable console to see game status console.";
togglePanel.Children.Add(toggleConsole);
}

Expand All @@ -224,6 +226,7 @@ public static void CreatePluginToggles(StackPanel togglePanel)
};
toggleExperimental.Checked += (sender, args) => EnvironmentHelper.BleedingModeEnabled = true;
toggleExperimental.Unchecked += (sender, args) => EnvironmentHelper.BleedingModeEnabled = false;
toggleExperimental.ToolTip = "Allow installation of experimental mods to this game.";
togglePanel.Children.Add(toggleExperimental);


Expand Down

0 comments on commit e31f495

Please sign in to comment.