Textdraw question
#1

Hey guys.

I am trying to make a notification list and I am not sure what is the best aproach.

My idea is the following


The notifications slots on the list will be made as

1. This is notification slot 1
2. This is notification slot 2
3. This is notification slot 3
4. This is notification slot 4

But the textdraws will have string " " so they won't be visible and when a notification comes, the " " string will be replaced with the notification text, for example:
1. You've received a message from X

But some notifications will be longer and won't fit in the box.

I was thinking to get the length and add "..." at the end if they are too long and make them clickable.
when the player clicks on it, the notification will enlarge.

The issue is..

I will have to make a trigger under OnPlayerClickPlayerTextDraw for every possible long notification... on... every possible slot that the notification may be placed on...

If the longer notification is placed on slot 1, I'll need to have a trigger under OnPlayerClickPlayerTextDraw for slot 1 for that notification...

but what if the notification is placed on slot 2... I'll need a trigger for that slot...

what is a better aproach
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)