forked from Imulion/MHFZ_Overlay
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
184ba1a
commit fa87e67
Showing
13 changed files
with
531 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Wpf.Ui.Common; | ||
using Wpf.Ui.Controls; | ||
using Wpf.Ui.Controls.IconElements; | ||
|
||
namespace MHFZ_Overlay.UI.Class; | ||
|
||
/// <summary> | ||
/// TODO: add GHC carve sound when obtaining and displaying snackbar | ||
/// </summary> | ||
public class Achievement | ||
{ | ||
/// <summary> | ||
/// Gets or sets the title. | ||
/// </summary> | ||
/// <value> | ||
/// The title. | ||
/// </value> | ||
public string Title { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Gets or sets the description of the snackbar. | ||
/// </summary> | ||
/// <value> | ||
/// The description. | ||
/// </value> | ||
public string Description { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Gets or sets the snackbar icon. | ||
/// </summary> | ||
/// <value> | ||
/// The icon. | ||
/// </value> | ||
public IconElement Icon { get; set; } = new SymbolIcon(SymbolRegular.Fluent24); | ||
/// <summary> | ||
/// Gets or sets the appearance. | ||
/// </summary> | ||
/// <value> | ||
/// The appearance. | ||
/// </value> | ||
public ControlAppearance Appearance { get; set; } = ControlAppearance.Secondary; | ||
/// <summary> | ||
/// Gets or sets the completion date. | ||
/// </summary> | ||
/// <value> | ||
/// The completion date. | ||
/// </value> | ||
public DateTime CompletionDate { get; set; } = DateTime.MinValue; | ||
/// <summary> | ||
/// Gets or sets the objective description to obtain this achievement. | ||
/// </summary> | ||
/// <value> | ||
/// The objective. | ||
/// </value> | ||
public string Objective { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Gets or sets the image of the achievement when displayed. | ||
/// </summary> | ||
/// <value> | ||
/// The image. | ||
/// </value> | ||
public string Image { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Gets or sets a value indicating whether this instance is secret. If it is secret, it shows everything as ?, otherwise it shows the Objective and everything else but grayed out. | ||
/// </summary> | ||
/// <value> | ||
/// <c>true</c> if this instance is secret; otherwise, <c>false</c>. | ||
/// </value> | ||
public bool IsSecret { get; set; } = false; | ||
/// <summary> | ||
/// Gets or sets the hint, which replaces the Objective if the achievement is secret. | ||
/// </summary> | ||
/// <value> | ||
/// The hint. | ||
/// </value> | ||
public string Hint { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Gets or sets a value indicating whether this instance is unlocked. | ||
/// </summary> | ||
/// <value> | ||
/// <c>true</c> if this instance is unlocked; otherwise, <c>false</c>. | ||
/// </value> | ||
public bool IsUnlocked { get; set; } = false; | ||
// Additional properties or methods related to achievements can be added here | ||
} |
Oops, something went wrong.