From 16f3ec251e6a0cff298a648a58e2dc8fa7f32ff9 Mon Sep 17 00:00:00 2001
From: Nytra <14206961+Nytra@users.noreply.github.com>
Date: Sun, 8 Dec 2024 19:46:27 +0000
Subject: [PATCH] Fix dash sizing
---
MonkeyLoader.Resonite.Integration/UI/Tooltips/Tooltip.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MonkeyLoader.Resonite.Integration/UI/Tooltips/Tooltip.cs b/MonkeyLoader.Resonite.Integration/UI/Tooltips/Tooltip.cs
index 1c2f5ef..19a052a 100644
--- a/MonkeyLoader.Resonite.Integration/UI/Tooltips/Tooltip.cs
+++ b/MonkeyLoader.Resonite.Integration/UI/Tooltips/Tooltip.cs
@@ -38,7 +38,7 @@ public sealed class Tooltip
///
/// Gets the scale multiplier for this tooltip.
///
- public float Scale => (IsOnDash ? 2.5f : 1) * TooltipConfig.Instance.TextScale;
+ public float Scale => TooltipConfig.Instance.TextScale;
///
/// Gets the text renderer that's displaying
@@ -52,7 +52,7 @@ internal Tooltip(Slot parent, in float3 localPosition, in LocaleString label)
Root = TooltipConfig.Instance.EnableNonLocalTooltips ? parent.AddSlot("Tooltip") : parent.AddLocalSlot("Local Tooltip");
Root.LocalPosition = localPosition + float3.Backward * parent.GlobalScaleToLocal(0.01f) + float3.Down * parent.GlobalScaleToLocal(0.025f);
- IsOnDash = Root.GetComponentInParents() is not null; // does this work?
+ IsOnDash = Root.GetComponentInParents() is not null;
var ui = RadiantUI_Panel.SetupPanel(Root, label, new float2(Scale * 700, 100 * Scale), false, false);
if (ui.Canvas.Slot.GetComponent() is BoxCollider collider) collider.Enabled = false;