fix: include image in preview

This commit is contained in:
Anna 2024-07-28 01:25:29 -04:00
parent d3eb675e49
commit 64b1f5b415
Signed by: anna
GPG Key ID: D0943384CD9F87D1
2 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@ public class Configuration : IPluginConfiguration {
[Evaluation.Poor] = 0.25f, [Evaluation.Poor] = 0.25f,
[Evaluation.Awful] = 0f, [Evaluation.Awful] = 0f,
}; };
public int EvaluationMinCombatants; public int EvaluationMinCombatants = 4;
public int EvaluationMinSameRole; public int EvaluationMinSameRole;
public Dictionary<Guid, bool> EvaluatorsRandomEnabled = Evaluator.Evaluators.ToDictionary( public Dictionary<Guid, bool> EvaluatorsRandomEnabled = Evaluator.Evaluators.ToDictionary(
e => e.Id, e => e.Id,

View File

@ -161,10 +161,11 @@ public class PluginUi : IDisposable {
var msg = evaluator.GetLineFor(evaluation, this.Plugin.Config.BlendEvaluations, Random.Shared.Next(1, 8)); var msg = evaluator.GetLineFor(evaluation, this.Plugin.Config.BlendEvaluations, Random.Shared.Next(1, 8));
if (msg != null) { if (msg != null) {
unsafe { unsafe {
UIModule.Instance()->ShowBattleTalk( UIModule.Instance()->ShowBattleTalkImage(
Encoding.UTF8.GetBytes(evaluator.Name), Encoding.UTF8.GetBytes(evaluator.Name),
msg.EncodeWithNullTerminator(), msg.EncodeWithNullTerminator(),
this.Plugin.Config.EvaluationLength, this.Plugin.Config.EvaluationLength,
evaluator.BattleTalkImage,
6 6
); );
} }