This commit is contained in:
goaaats 2022-01-12 18:19:36 +01:00
commit af4a25c74b
No known key found for this signature in database
GPG key ID: F18F057873895461
6 changed files with 38 additions and 14 deletions

View file

@ -449,5 +449,20 @@ namespace Dalamud.Game.ClientState.Conditions
/// Unable to execute command while bound by duty. /// Unable to execute command while bound by duty.
/// </summary> /// </summary>
BoundByDuty95 = 95, BoundByDuty95 = 95,
/// <summary>
/// Cannot execute at this time.
/// </summary>
Unknown96 = 96,
/// <summary>
/// Unable to execute command while wearing a guise.
/// </summary>
Disguised = 97,
/// <summary>
/// Unable to execute command while recruiting for a non-cross-world party.
/// </summary>
RecruitingWorldOnly = 98,
} }
} }

View file

@ -15,14 +15,14 @@ namespace Dalamud.Game.ClientState.JobGauge.Enums
/// </summary> /// </summary>
COEURL = 1, COEURL = 1,
/// <summary>
/// The Raptor chakra.
/// </summary>
RAPTOR = 2,
/// <summary> /// <summary>
/// The Opo-Opo chakra. /// The Opo-Opo chakra.
/// </summary> /// </summary>
OPOOPO = 3, OPOOPO = 2,
/// <summary>
/// The Raptor chakra.
/// </summary>
RAPTOR = 3,
} }
} }

View file

@ -29,7 +29,7 @@ namespace Dalamud.Game.ClientState.JobGauge.Types
public byte FairyGauge => this.Struct->FairyGauge; public byte FairyGauge => this.Struct->FairyGauge;
/// <summary> /// <summary>
/// Gets the Seraph time remaiSCHg in milliseconds. /// Gets the remaining time Seraph is active in milliseconds.
/// </summary> /// </summary>
public short SeraphTimer => this.Struct->SeraphTimer; public short SeraphTimer => this.Struct->SeraphTimer;

View file

@ -63,6 +63,7 @@ namespace Dalamud.Interface.Internal.Windows
private string feedbackModalContact = string.Empty; private string feedbackModalContact = string.Empty;
private bool feedbackModalIncludeException = false; private bool feedbackModalIncludeException = false;
private PluginManifest? feedbackPlugin = null; private PluginManifest? feedbackPlugin = null;
private bool feedbackIsTesting = false;
private int updatePluginCount = 0; private int updatePluginCount = 0;
private List<PluginUpdateStatus>? updatedPlugins; private List<PluginUpdateStatus>? updatedPlugins;
@ -424,7 +425,7 @@ namespace Dalamud.Interface.Internal.Windows
{ {
if (this.feedbackPlugin != null) if (this.feedbackPlugin != null)
{ {
Task.Run(async () => await BugBait.SendFeedback(this.feedbackPlugin, this.feedbackModalBody, this.feedbackModalContact, this.feedbackModalIncludeException)) Task.Run(async () => await BugBait.SendFeedback(this.feedbackPlugin, this.feedbackIsTesting, this.feedbackModalBody, this.feedbackModalContact, this.feedbackModalIncludeException))
.ContinueWith( .ContinueWith(
t => t =>
{ {
@ -1237,7 +1238,7 @@ namespace Dalamud.Interface.Internal.Windows
if (!manifest.SourceRepo.IsThirdParty && manifest.AcceptsFeedback) if (!manifest.SourceRepo.IsThirdParty && manifest.AcceptsFeedback)
{ {
this.DrawSendFeedbackButton(manifest); this.DrawSendFeedbackButton(manifest, false);
} }
ImGuiHelpers.ScaledDummy(5); ImGuiHelpers.ScaledDummy(5);
@ -1455,14 +1456,18 @@ namespace Dalamud.Interface.Internal.Windows
if (canFeedback) if (canFeedback)
{ {
this.DrawSendFeedbackButton(plugin.Manifest); this.DrawSendFeedbackButton(plugin.Manifest, plugin.IsTesting);
} }
if (availablePluginUpdate != default) if (availablePluginUpdate != default)
this.DrawUpdateSinglePluginButton(availablePluginUpdate); this.DrawUpdateSinglePluginButton(availablePluginUpdate);
ImGui.SameLine(); ImGui.SameLine();
ImGui.TextColored(ImGuiColors.DalamudGrey3, $" v{plugin.Manifest.AssemblyVersion}"); var version = plugin.AssemblyName?.Version;
version ??= plugin.Manifest.Testing
? plugin.Manifest.TestingAssemblyVersion
: plugin.Manifest.AssemblyVersion;
ImGui.TextColored(ImGuiColors.DalamudGrey3, $" v{version}");
if (plugin.IsDev) if (plugin.IsDev)
{ {
@ -1684,13 +1689,14 @@ namespace Dalamud.Interface.Internal.Windows
} }
} }
private void DrawSendFeedbackButton(PluginManifest manifest) private void DrawSendFeedbackButton(PluginManifest manifest, bool isTesting)
{ {
ImGui.SameLine(); ImGui.SameLine();
if (ImGuiComponents.IconButton(FontAwesomeIcon.Comment)) if (ImGuiComponents.IconButton(FontAwesomeIcon.Comment))
{ {
this.feedbackPlugin = manifest; this.feedbackPlugin = manifest;
this.feedbackModalOnNextFrame = true; this.feedbackModalOnNextFrame = true;
this.feedbackIsTesting = isTesting;
} }
if (ImGui.IsItemHovered()) if (ImGui.IsItemHovered())

View file

@ -23,7 +23,7 @@ namespace Dalamud.Support
/// <param name="reporter">The reporter name.</param> /// <param name="reporter">The reporter name.</param>
/// <param name="includeException">Whether or not the most recent exception to occur should be included in the report.</param> /// <param name="includeException">Whether or not the most recent exception to occur should be included in the report.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
public static async Task SendFeedback(PluginManifest plugin, string content, string reporter, bool includeException) public static async Task SendFeedback(PluginManifest plugin, bool isTesting, string content, string reporter, bool includeException)
{ {
if (content.IsNullOrWhitespace()) if (content.IsNullOrWhitespace())
return; return;
@ -33,7 +33,7 @@ namespace Dalamud.Support
Content = content, Content = content,
Reporter = reporter, Reporter = reporter,
Name = plugin.InternalName, Name = plugin.InternalName,
Version = plugin.AssemblyVersion.ToString(), Version = isTesting ? plugin.TestingAssemblyVersion?.ToString() : plugin.AssemblyVersion.ToString(),
DalamudHash = Util.GetGitHash(), DalamudHash = Util.GetGitHash(),
}; };

View file

@ -8,6 +8,9 @@ Dalamud is a plugin development framework for FINAL FANTASY XIV that provides ac
It is meant to be used in conjunction with [FFXIVQuickLauncher](https://github.com/goatcorp/FFXIVQuickLauncher), which manages and launches Dalamud for you. __It is generally not recommended for users to try to run Dalamud manually as there are multiple dependencies and assumed folder paths.__ It is meant to be used in conjunction with [FFXIVQuickLauncher](https://github.com/goatcorp/FFXIVQuickLauncher), which manages and launches Dalamud for you. __It is generally not recommended for users to try to run Dalamud manually as there are multiple dependencies and assumed folder paths.__
## Hold Up!
If you are just trying to **use** Dalamud, you don't need to do anything on this page - please [download XIVLauncher](https://goatcorp.github.io/) from its official page and follow the setup instructions.
## Plugin development ## Plugin development
Dalamud features a growing API for in-game plugin development with game data and chat access and overlays. Dalamud features a growing API for in-game plugin development with game data and chat access and overlays.
Please see our [Developer FAQ](https://goatcorp.github.io/faq/development) and the [API documentation](https://goatcorp.github.io/Dalamud/api/index.html) for more details. Please see our [Developer FAQ](https://goatcorp.github.io/faq/development) and the [API documentation](https://goatcorp.github.io/Dalamud/api/index.html) for more details.