Class AchievementsStudioNoticesGui
What the Studio tells the author about the project as a whole, above whichever tab is showing: that nothing installs the achievements module, and that some achievements could not be checked at all.
Inherited Members
Namespace: Serenity.Achievements.Infrastructure.Editor.Studio
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public static class AchievementsStudioNoticesGui
Remarks
A collaborator rather than two methods on the window, because both notices are about the project and neither is about a tab: the list and the platform table show different things about the same set of assets, and an author who cannot be told "these three defeated the rules" while looking at the table has been told a comfortable half-truth.
Fields
MissingSettingsMessage
What the Studio says when the project has no achievement settings asset.
Declaration
public const string MissingSettingsMessage = "This project has no achievement settings asset, so nothing installs the achievements module at runtime. Achievements authored here are still real assets, but nothing loads them until the wizard has run once."
Field Value
| Type | Description |
|---|---|
| string |
OpenWizardButtonLabel
The button that opens the wizard from the missing-settings notice.
Declaration
public const string OpenWizardButtonLabel = "Open the Achievements wizard"
Field Value
| Type | Description |
|---|---|
| string |
UnjudgedRowsMessage
What the Studio says when some achievements defeated the authoring rules.
Declaration
public const string UnjudgedRowsMessage = "{0} achievement(s) could not be judged. Their rows carry a 'Failed to judge' badge, and the Console names the file and the reason for each."
Field Value
| Type | Description |
|---|---|
| string |
Methods
DrawMissingSettings(bool)
Offers the wizard when nothing in the project installs the achievements module.
Declaration
public static void DrawMissingSettings(bool hasSettingsAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | hasSettingsAsset | Whether the project has an achievement settings asset. |
DrawUnjudgedRows(int)
Says how many achievements defeated the rules, because a row badge is easy to scroll past and "nothing is wrong with this project" is the wrong thing for the window to imply while some of it could not be checked at all.
Declaration
public static void DrawUnjudgedRows(int unjudgedCount)
Parameters
| Type | Name | Description |
|---|---|---|
| int | unjudgedCount | How many achievements could not be judged. Zero draws nothing. |