Skip to content

Commit

Permalink
Manager: Update about menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Sejsel committed Mar 21, 2024
1 parent 87f83bd commit a4d7fa8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ArcdpsLogManager/Controls/Filters/LogFilterPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ public LogFilterPanel(LogCache logCache, ApiData apiData, LogDataProcessor logPr
unknownCheckBox.CheckedBinding.Bind(this, x => x.Filters.ShowUnknownLogs);
BindEnabled(unknownCheckBox);

var normalModeCheckBox = new CheckBox {Text = "Normal"};
var normalModeCheckBox = new CheckBox {Text = "Normal", ToolTip = "Normal mode"};
normalModeCheckBox.CheckedBinding.Bind(this, x => x.Filters.ShowNormalModeLogs);
BindEnabled(normalModeCheckBox);
var emboldenedCheckBox = new CheckBox {Text = "Emboldened"};
var emboldenedCheckBox = new CheckBox {Text = "Emboldened", ToolTip = "Emboldened regardless of how many stacks of Emboldened"};
emboldenedCheckBox.CheckedBinding.Bind(this, x => x.Filters.ShowEmboldenedModeLogs);
BindEnabled(emboldenedCheckBox);
var challengeModeCheckBox = new CheckBox {Text = "Challenge"};
var challengeModeCheckBox = new CheckBox {Text = "Challenge", ToolTip = "Challenge Mode"};
challengeModeCheckBox.CheckedBinding.Bind(this, x => x.Filters.ShowChallengeModeLogs);
BindEnabled(challengeModeCheckBox);
var legendaryModeCheckBox = new CheckBox {Text = "Legendary"};
var legendaryModeCheckBox = new CheckBox {Text = "Legendary", ToolTip = "Legendary Challenge Mode (Temple of Febe...)"};
legendaryModeCheckBox.CheckedBinding.Bind(this, x => x.Filters.ShowLegendaryChallengeModeLogs);
BindEnabled(legendaryModeCheckBox);

Expand Down
22 changes: 21 additions & 1 deletion ArcdpsLogManager/ManagerForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using GW2Scratch.EVTCAnalytics.GameData;
using GW2Scratch.EVTCAnalytics.Processing;
using Gw2Sharp;
using System.Diagnostics;

namespace GW2Scratch.ArcdpsLogManager
{
Expand Down Expand Up @@ -539,7 +540,26 @@ private MenuBar ConstructMenuBar()
var settingsMenuItem = new ButtonMenuItem {Text = "&Settings"};
settingsMenuItem.Items.Add(settingsFormMenuItem);

var helpMenuItem = new ButtonMenuItem {Text = "Help"};
var helpMenuItem = new ButtonMenuItem {Text = "About"};
helpMenuItem.Items.Add(new Command((_, _) =>
{
var processInfo = new ProcessStartInfo
{
FileName = "https://ko-fi.com/sejsel",
UseShellExecute = true
};
Process.Start(processInfo);
}) { MenuText = "Donate" });
helpMenuItem.Items.Add(new SeparatorMenuItem());
helpMenuItem.Items.Add(new Command((_, _) =>
{
var processInfo = new ProcessStartInfo
{
FileName = "https://gw2scratch.com/",
UseShellExecute = true
};
Process.Start(processInfo);
}) { MenuText = "Website" });
helpMenuItem.Items.Add(new About());

return new MenuBar(dataMenuItem, viewMenuItem, settingsMenuItem, helpMenuItem);
Expand Down

0 comments on commit a4d7fa8

Please sign in to comment.