Merge branch 'master' into flytext-fixes2

This commit is contained in:
liam 2023-01-14 10:30:00 -05:00 committed by GitHub
commit 96d31fbaa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 6 deletions

View file

@ -8,7 +8,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="Feature"> <PropertyGroup Label="Feature">
<DalamudVersion>7.3.5.0</DalamudVersion> <DalamudVersion>7.4.1.0</DalamudVersion>
<Description>XIV Launcher addon framework</Description> <Description>XIV Launcher addon framework</Description>
<AssemblyVersion>$(DalamudVersion)</AssemblyVersion> <AssemblyVersion>$(DalamudVersion)</AssemblyVersion>
<Version>$(DalamudVersion)</Version> <Version>$(DalamudVersion)</Version>

View file

@ -26,6 +26,15 @@ public static partial class ImGuiComponents
public static bool IconButton(int id, FontAwesomeIcon icon) public static bool IconButton(int id, FontAwesomeIcon icon)
=> IconButton(id, icon, null, null, null); => IconButton(id, icon, null, null, null);
/// <summary>
/// IconButton component to use an icon as a button.
/// </summary>
/// <param name="id">The ID of the button.</param>
/// <param name="icon">The icon for the button.</param>
/// <returns>Indicator if button is clicked.</returns>
public static bool IconButton(string id, FontAwesomeIcon icon)
=> IconButton(id, icon, null, null, null);
/// <summary> /// <summary>
/// IconButton component to use an icon as a button. /// IconButton component to use an icon as a button.
/// </summary> /// </summary>
@ -55,7 +64,19 @@ public static partial class ImGuiComponents
/// <param name="hoveredColor">The color of the button when hovered.</param> /// <param name="hoveredColor">The color of the button when hovered.</param>
/// <returns>Indicator if button is clicked.</returns> /// <returns>Indicator if button is clicked.</returns>
public static bool IconButton(int id, FontAwesomeIcon icon, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null) public static bool IconButton(int id, FontAwesomeIcon icon, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null)
=> IconButton($"{icon.ToIconString()}{id}", defaultColor, activeColor, hoveredColor); => IconButton($"{icon.ToIconString()}##{id}", defaultColor, activeColor, hoveredColor);
/// <summary>
/// IconButton component to use an icon as a button with color options.
/// </summary>
/// <param name="id">The ID of the button.</param>
/// <param name="icon">The icon for the button.</param>
/// <param name="defaultColor">The default color of the button.</param>
/// <param name="activeColor">The color of the button when active.</param>
/// <param name="hoveredColor">The color of the button when hovered.</param>
/// <returns>Indicator if button is clicked.</returns>
public static bool IconButton(string id, FontAwesomeIcon icon, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null)
=> IconButton($"{icon.ToIconString()}##{id}", defaultColor, activeColor, hoveredColor);
/// <summary> /// <summary>
/// IconButton component to use an icon as a button with color options. /// IconButton component to use an icon as a button with color options.

View file

@ -18,12 +18,11 @@ internal sealed class ChangelogWindow : Window, IDisposable
/// <summary> /// <summary>
/// Whether the latest update warrants a changelog window. /// Whether the latest update warrants a changelog window.
/// </summary> /// </summary>
public const string WarrantsChangelogForMajorMinor = "7.0."; public const string WarrantsChangelogForMajorMinor = "7.4.";
private const string ChangeLog = private const string ChangeLog =
@"• Updated Dalamud for compatibility with Patch 6.2 @"• Updated Dalamud for compatibility with Patch 6.3
Made things more speedy Made things more speedy by updating to .NET 7
Plugins can now be toggled off while remaining installed, instead of being removed completely
If you note any issues or need help, please check the FAQ, and reach out on our Discord if you need help. If you note any issues or need help, please check the FAQ, and reach out on our Discord if you need help.
Thanks and have fun!"; Thanks and have fun!";

View file

@ -225,6 +225,7 @@ internal class LocalPlugin : IDisposable
/// Gets a value indicating whether or not this plugin is serviced(repo still exists, but plugin no longer does). /// Gets a value indicating whether or not this plugin is serviced(repo still exists, but plugin no longer does).
/// </summary> /// </summary>
public bool IsDecommissioned => !this.IsDev && public bool IsDecommissioned => !this.IsDev &&
this.GetSourceRepository()?.State == PluginRepositoryState.Success &&
this.GetSourceRepository()?.PluginMaster?.FirstOrDefault(x => x.InternalName == this.Manifest.InternalName) == null; this.GetSourceRepository()?.PluginMaster?.FirstOrDefault(x => x.InternalName == this.Manifest.InternalName) == null;
/// <summary> /// <summary>