Skip to content

Commit 864adc1

Browse files
author
Conti
committed
added default value to text modifiers if size is 0
1 parent 2ed3cd5 commit 864adc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Modifiers/TextPopup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public class TextPopup : Modifier
1515
private readonly bool glow;
1616
private readonly bool faceForward;
1717
private Vector3 modifierTextPosition = new Vector3(0f, 4f, 25f);
18-
public TextPopup(ModifierType _type = ModifierType.TextPopup, float _startTick = 0, float _endTick = 0, string _text = "", float _size = 12, float _xoff = 0, float _yoff = 0, float _zoff = 0, bool _glow = false, bool _faceForward = false)
18+
public TextPopup(ModifierType _type = ModifierType.TextPopup, float _startTick = 0, float _endTick = 0, string _text = "", float _size = 20f, float _xoff = 0, float _yoff = 0, float _zoff = 0, bool _glow = false, bool _faceForward = false)
1919
{
2020
Type = _type;
2121
StartTick = _startTick;
2222
EndTick = _endTick;
2323
text = _text;
24-
if (_size <= 0f) _size = 20f;
24+
if (_size == 0f) _size = 20f;
2525
size = _size;
2626
glow = _glow;
2727
faceForward = _faceForward;

0 commit comments

Comments
 (0)