Skip to content

Commit

Permalink
Fix dash sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytra committed Dec 8, 2024
1 parent 5c1f899 commit 16f3ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MonkeyLoader.Resonite.Integration/UI/Tooltips/Tooltip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed class Tooltip
/// <summary>
/// Gets the scale multiplier for this tooltip.
/// </summary>
public float Scale => (IsOnDash ? 2.5f : 1) * TooltipConfig.Instance.TextScale;
public float Scale => TooltipConfig.Instance.TextScale;

/// <summary>
/// Gets the text renderer that's displaying
Expand All @@ -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<UserspaceRadiantDash>() is not null; // does this work?
IsOnDash = Root.GetComponentInParents<UserspaceRadiantDash>() is not null;

var ui = RadiantUI_Panel.SetupPanel(Root, label, new float2(Scale * 700, 100 * Scale), false, false);
if (ui.Canvas.Slot.GetComponent<BoxCollider>() is BoxCollider collider) collider.Enabled = false;
Expand Down

0 comments on commit 16f3ec2

Please sign in to comment.