From 98b7850c9331da36c909c99e8c4abbe49f9a3ee0 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Wed, 7 Sep 2022 11:16:04 +0200 Subject: [PATCH] feat(ui): added animation to overflowing text --- ND_CharacterSelection/source/ui/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ND_CharacterSelection/source/ui/script.js b/ND_CharacterSelection/source/ui/script.js index dfc0de3..7f2dcd2 100644 --- a/ND_CharacterSelection/source/ui/script.js +++ b/ND_CharacterSelection/source/ui/script.js @@ -114,7 +114,11 @@ $(function() { }) function createCharacter(firstName, lastName, dateOfBirth, gender, twtName, department, startingCash, startingBank, id) { - $("#charactersSection").append(``); + if ((firstName.length + lastName.length + department.length) > 24) { + $("#charactersSection").append(``); + } else { + $("#charactersSection").append(``); + } $(`#characterButton${id}`).click(function() { spawnMenu(true) $.post(`https://${GetParentResourceName()}/setMainCharacter`, JSON.stringify({