Minor fixes
This commit is contained in:
@@ -517,7 +517,7 @@ internal static class ImGuiUtils
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool ListClip<T>(IReadOnlyList<T> data, float lineHeight, Predicate<T> func)
|
private static bool ListClip<T>(List<T> data, float lineHeight, Predicate<T> func)
|
||||||
{
|
{
|
||||||
ImGuiListClipperPtr imGuiListClipperPtr;
|
ImGuiListClipperPtr imGuiListClipperPtr;
|
||||||
unsafe
|
unsafe
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ internal sealed unsafe class SynthesisValues(AddonSynthesis* addon)
|
|||||||
{
|
{
|
||||||
ValueType.ManagedString or
|
ValueType.ManagedString or
|
||||||
ValueType.String =>
|
ValueType.String =>
|
||||||
MemoryHelper.ReadSeStringNullTerminated((nint)value.String),
|
MemoryHelper.ReadSeStringNullTerminated((nint)value.String.Value),
|
||||||
_ => null
|
_ => null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1180,7 +1180,7 @@ public sealed class MacroEditor : Window, IDisposable
|
|||||||
{
|
{
|
||||||
var actions = Macro.Actions.ToArray();
|
var actions = Macro.Actions.ToArray();
|
||||||
var waitTime = actions.Sum(a => a.Base().MacroWaitTime);
|
var waitTime = actions.Sum(a => a.Base().MacroWaitTime);
|
||||||
var waitTimeOptimal = waitTime - actions.Length * 0.1f;
|
var waitTimeOptimal = waitTime - actions.Length;
|
||||||
var delineationCount = actions.Count(SolverConfig.SpecialistActions.Contains);
|
var delineationCount = actions.Count(SolverConfig.SpecialistActions.Contains);
|
||||||
|
|
||||||
var height = (delineationCount == 0 ? 2 : 3) * ImGui.GetTextLineHeightWithSpacing();
|
var height = (delineationCount == 0 ? 2 : 3) * ImGui.GetTextLineHeightWithSpacing();
|
||||||
|
|||||||
Reference in New Issue
Block a user