From ebc6dfa3bbcc3617b273df59b84a0a42f418d21c Mon Sep 17 00:00:00 2001 From: Jackson <9527380+Jaksuhn@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:22:11 +0100 Subject: [PATCH] what the fuck, fix #49 --- Automaton/UI/FateTrackerUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Automaton/UI/FateTrackerUI.cs b/Automaton/UI/FateTrackerUI.cs index 6103fb4..28e3280 100644 --- a/Automaton/UI/FateTrackerUI.cs +++ b/Automaton/UI/FateTrackerUI.cs @@ -68,7 +68,7 @@ public override void Draw() } var nameColour = _tweak.FateConditions(fate) ? new Vector4(1, 1, 1, 1) : _tweak.Config.blacklist.Contains(fate.FateId) ? new Vector4(1, 0, 0, 0.5f) : new Vector4(1, 1, 1, 0.5f); - ImGuiEx.TextV(nameColour, $"{fate.Name} {(_tweak.Config.ShowFateTimeRemaining && fate.TimeRemaining >= 0 ? TimeSpan.FromSeconds(fate.TimeRemaining) : string.Empty)}"); + ImGuiEx.TextV(nameColour, $"{fate.Name} {(_tweak.Config.ShowFateTimeRemaining && fate.TimeRemaining >= 0 ? new TimeSpan(0, 0, (int)fate.TimeRemaining) : string.Empty)}"); if (ImGui.IsItemHovered()) ImGui.SetTooltip($"[{fate.FateId}] {fate.Position} {fate.Progress}%% {fate.TimeRemaining}/{fate.Duration}\nFate {(_tweak.FateConditions(fate) ? "meets" : "doesn't meet")} conditions and {(_tweak.FateConditions(fate) ? "will" : "won't")} be pathed to in auto mode."); ImGui.TableNextColumn();