Skip to content

Commit

Permalink
2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Critical-Impact committed Nov 23, 2024
1 parent 037868c commit bfcf768
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [2.1.5] - 2024-11-23

### Fixed

- Implement missing IChatGui methods

## [2.1.4] - 2024-11-18

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion DalaMock.Host/DalaMock.Host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<LangVersion>12.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Version>2.1.4</Version>
<Version>2.1.5</Version>
<PackageProjectUrl>https://github.com/Critical-Impact/DalaMock</PackageProjectUrl>
<RepositoryUrl>https://github.com/Critical-Impact/DalaMock</RepositoryUrl>
<Authors>Critical-Impact</Authors>
Expand Down
2 changes: 1 addition & 1 deletion DalaMock.Sample/DalaMock.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<LangVersion>12.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Version>2.1.4</Version>
<Version>2.1.5</Version>
<PackageProjectUrl>https://github.com/Critical-Impact/DalaMock</PackageProjectUrl>
<RepositoryUrl>https://github.com/Critical-Impact/DalaMock</RepositoryUrl>
<Authors>Critical-Impact</Authors>
Expand Down
2 changes: 1 addition & 1 deletion DalaMock.Shared/DalaMock.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<LangVersion>12.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Version>2.1.4</Version>
<Version>2.1.5</Version>
<PackageProjectUrl>https://github.com/Critical-Impact/DalaMock</PackageProjectUrl>
<RepositoryUrl>https://github.com/Critical-Impact/DalaMock</RepositoryUrl>
<Authors>Critical-Impact</Authors>
Expand Down
2 changes: 1 addition & 1 deletion DalaMock/DalaMock.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<LangVersion>12.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Version>2.1.4</Version>
<Version>2.1.5</Version>
<PackageProjectUrl>https://github.com/Critical-Impact/DalaMock</PackageProjectUrl>
<RepositoryUrl>https://github.com/Critical-Impact/DalaMock</RepositoryUrl>
<Authors>Critical-Impact</Authors>
Expand Down
16 changes: 15 additions & 1 deletion DalaMock/Mocks/MockChatGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public MockChatGui(IPluginLog pluginLog)
set;
}

public void PrintError(ReadOnlySpan<byte> message, string? messageTag = null, ushort? tagColor = null)
{
var stringBuilder = new Lumina.Text.SeStringBuilder();
stringBuilder.Append(message);
this.PrintError(stringBuilder.ToSeString(), messageTag, tagColor);
}

/// <inheritdoc />
public uint LastLinkedItemId { get; set; }

Expand Down Expand Up @@ -73,7 +80,14 @@ public void PrintError(string message, string? messageTag = null, ushort? tagCol
/// <inheritdoc />
public void PrintError(SeString message, string? messageTag = null, ushort? tagColor = null)
{
this.pluginLog.Info($"ERROR: {(messageTag == null ? "" : $"[{messageTag}] ")}{message}");
this.pluginLog.Info($"ERROR: {(messageTag == null ? "" : $"[{messageTag}] ")}{message.TextValue}");
}

public void Print(ReadOnlySpan<byte> message, string? messageTag = null, ushort? tagColor = null)
{
var stringBuilder = new Lumina.Text.SeStringBuilder();
stringBuilder.Append(message);
this.Print(stringBuilder.ToSeString(), messageTag, tagColor);
}

public virtual void OnChatMessage(XivChatType type, int timestamp, ref SeString sender, ref SeString message, ref bool ishandled)
Expand Down

0 comments on commit bfcf768

Please sign in to comment.