Preview
#1

What is this stuff called?

Is it clickable textdraws?

http://i.imgur.com/kfsbJb1.png
Reply
#2

That's just using TextDrawSetPreviewModel and TextDrawSetSelectable.
Reply
#3

What model is it and how can i do that?
Reply
#4

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
What model is it


Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
and how can i do that?
Quote:
Originally Posted by xser
Посмотреть сообщение
That's just using TextDrawSetPreviewModel and TextDrawSetSelectable.
Reply
#5

I am going to add all the objects like that, how do i do that? like with pictures and so?
Reply
#6

It's not simple.

First you need to create the static textdraws, i.e. everything apart from the boxes with objects in them.

Then you need to create the boxes with objects in them, using TextDrawSetPreviewModel, and make them selectable using TextDrawSetSelectable.

You should practise with simpler things first. Try making a single model in the middle of the screen. Once you've got that, make it clickable. Once you've got that, make a row of them.
Reply
#7

And do SelectTextDraw(playerid, color); where u want to show the textdraw and CancelSelectTextDraw(playerid);
where u want to hide textdraw
And if u not able to click them then there might be a problem with TextDrawTextSize
Reply
#8

Quote:
Originally Posted by Hanuman
Посмотреть сообщение
And do SelectTextDraw(playerid, color); where u want to show the textdraw and CancelSelectTextDraw(playerid);
where u want to hide textdraw
That is not what those functions do. They don't show/hide the textdraw. They show/hide the player's cursor so they can click on textdraws.
Reply
#9

lol, i knew that, i was saying that wherever he show the clickable textdraw, he will need to do SelectTextDraw(playerid, color); so that cursor can appear for selection and vice versa
Reply
#10

I see. I slightly misunderstood. You means he needs to use those functions when he shows/hides textdraws. I thought you were saying he should use those functions TO show/hide the textdraws.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)