mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-16 12:57:44 +01:00
wip bindings upgrade
This commit is contained in:
parent
bd7e56850a
commit
0690cce995
272 changed files with 139041 additions and 1541 deletions
|
|
@ -8,7 +8,7 @@ using Dalamud.Interface.Utility;
|
|||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Utility.Numerics;
|
||||
using Dalamud.Utility.Timing;
|
||||
using ImGuiNET;
|
||||
using Dalamud.Bindings.ImGui;
|
||||
|
||||
namespace Dalamud.Interface.Internal.Windows;
|
||||
|
||||
|
|
@ -192,7 +192,7 @@ public class ProfilerWindow : Window
|
|||
|
||||
var eventsXPos = new List<float>();
|
||||
const float eventsXPosFudge = 5f;
|
||||
|
||||
|
||||
foreach (var timingEvent in Timings.Events)
|
||||
{
|
||||
var startX = (timingEvent.StartTime - this.min) / (this.max - this.min) * width;
|
||||
|
|
@ -217,7 +217,7 @@ public class ProfilerWindow : Window
|
|||
{
|
||||
textPos.X = pos.X + (uint)startX - textSize.X - padding;
|
||||
}
|
||||
|
||||
|
||||
var numClashes = eventsXPos.Count(x => Math.Abs(x - textPos.X) < textSize.X + eventsXPosFudge);
|
||||
if (numClashes > 0)
|
||||
{
|
||||
|
|
@ -228,7 +228,7 @@ public class ProfilerWindow : Window
|
|||
textPos,
|
||||
ImGui.GetColorU32(ImGuiColors.DalamudWhite),
|
||||
timingEvent.Name);
|
||||
|
||||
|
||||
eventsXPos.Add(textPos.X);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue