fix: include image in preview
This commit is contained in:
parent
d3eb675e49
commit
64b1f5b415
@ -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,
|
||||||
|
@ -124,8 +124,8 @@ public class PluginUi : IDisposable {
|
|||||||
const string previewLabel = "Preview";
|
const string previewLabel = "Preview";
|
||||||
var previewButtonSize = ImGuiHelpers.GetButtonSize(previewLabel);
|
var previewButtonSize = ImGuiHelpers.GetButtonSize(previewLabel);
|
||||||
var comboSize = ImGui.GetContentRegionAvail().X
|
var comboSize = ImGui.GetContentRegionAvail().X
|
||||||
- ImGui.GetStyle().ItemSpacing.X
|
- ImGui.GetStyle().ItemSpacing.X
|
||||||
- previewButtonSize.X;
|
- previewButtonSize.X;
|
||||||
|
|
||||||
var current = Evaluator.Evaluators.FirstOrDefault(e => e.Id == this.Plugin.Config.EvaluatorId);
|
var current = Evaluator.Evaluators.FirstOrDefault(e => e.Id == this.Plugin.Config.EvaluatorId);
|
||||||
var preview = current == null
|
var preview = current == null
|
||||||
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user