Preview - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Preview (
/showthread.php?tid=500958)
Preview -
Ananisiki - 15.03.2014
What is this stuff called?
Is it clickable textdraws?
http://i.imgur.com/kfsbJb1.png
Re: Preview -
xser - 16.03.2014
That's just using TextDrawSetPreviewModel and TextDrawSetSelectable.
Re: Preview -
Ananisiki - 23.03.2014
What model is it and how can i do that?
Re: Preview -
MP2 - 23.03.2014
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.
|
Re: Preview -
Ananisiki - 23.03.2014
I am going to add all the objects like that, how do i do that? like with pictures and so?
Re: Preview -
MP2 - 23.03.2014
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.
Re: Preview -
Hanuman - 23.03.2014
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
Re: Preview -
MP2 - 23.03.2014
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.
Re: Preview -
Hanuman - 23.03.2014
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
Re: Preview -
MP2 - 23.03.2014
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.