Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Advanced Textdraws

 
  • 0 Vote(s) - 0 Average
Pawn Advanced Textdraws
PanGemius
Offline

Burgershot Member
Posts: 3
Threads: 1
Joined: Jan 2021
Reputation: 0
#1
2021-01-04, 01:38 PM
Hi guys,

I would like to do some better stuff with textdraws other than just showing a text. But in my TD editor I did not manage to do things like this:
https://www.youtube.com/watch?v=C9Pjjo5KQos

How can they be done and what would you recommend? Ty.
Jarnokai
Offline

Burgershot Member
Posts: 53
Threads: 5
Joined: Apr 2019
Reputation: 0
Location: Oulu, Finland
#2
2021-01-04, 03:35 PM
The textdraw editor is merely for creating the visual part of the textdraws - that is, if you are creating a phone, for example, you would create various box-shaped textdraws in order to make the body, screen and other features of the phone. Then you would type in normal text draws for the buttons and letters. Finally you create a base for the menu. After the visual part is done, the final and ultimately most important part is start scripting and bring your textdraws to life!
All of the menu, audio, navigation and other functions shown in the video you linked are done through PAWN scripting. The TD editor is only used to create the visuals.
PanGemius
Offline

Burgershot Member
Posts: 3
Threads: 1
Joined: Jan 2021
Reputation: 0
#3
2021-01-04, 03:48 PM
Alright and how does the bringind the textdraws to the life work? It is literally like detecting keys and hiding/showing new textdraws? Is not that too much lines of code? Because from the point that I understand how it works, it needs to be sooo much work.
PanGemius
Offline

Burgershot Member
Posts: 3
Threads: 1
Joined: Jan 2021
Reputation: 0
#4
2021-01-04, 04:39 PM
One more question just to add. If I want to do for example casino features, how to include like Singleplayer pictures of for example that coin winning machine, where you have to match 3 results in order to win? For example 3 golden bricks?

Thanks!
Jarnokai
Offline

Burgershot Member
Posts: 53
Threads: 5
Joined: Apr 2019
Reputation: 0
Location: Oulu, Finland
#5
2021-01-08, 11:17 AM
(2021-01-04, 03:48 PM)PanGemius Wrote: Alright and how does the bringind the textdraws to the life work? It is literally like detecting keys and hiding/showing new textdraws? Is not that too much lines of code? Because from the point that I understand how it works, it needs to be sooo much work.

Yes, key detection and hiding/showing and manipulating textdraws. It needs a lot of work and sadly I believe there is no open-source pre-made systrem for it.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode