[Include] GameTextDraws - Use your own colors for GameTexts!
#1

GameText Library
What's good with this? Why you should use this?
- Use your own colors in GameTexts. Maybe Color codes (~r~, ~g~, ... isn't enough for someones! )
- Fix for buggy styles, like style 0, 1, 2, 5
- New styles! Coming soon in next versions!

How you can use this?
Simple, Just download it from here. Then place files in your pawno/include folder.

Usage is simple, Just include the library by following code:

pawn Code:
#include <a_gametext>
Then take a look at the GitHub wiki of this project.

Functions
pawn Code:
GameTextForPlayer_(playerid, string[], time, style, color = DEFAULT_COLOR);
GameTextForAll_(string[], time, style, color = DEFAULT_COLOR);
ScreenShots

Styles using this Library (Like originals)

Style 0


You can see original styles in here.

Style 7


Style 8


Style 9


Style 10


Style 4 with custom color.





Contributions are welcome!

Download the Library here
Reply
#2

Nice.I'm using it
Reply
#3

Quote:
Originally Posted by JonathanW
View Post
Nice.I'm using it
Thanks
Reply
#4

Good Work
Rep
Reply
#5

The example script has a small bug in it, GameTextForAllOthers_ is missing the playerid parameter. This actually is quite useful and I'm not one of the people who comments "useful" and "nice" everywhere.
Reply
#6

Quote:
Originally Posted by Younes44
View Post
Good Work
Rep
Thanks for your comment.

Quote:
Originally Posted by kvann
View Post
The example script has a small bug in it, GameTextForAllOthers_ is missing the playerid parameter. This actually is quite useful and I'm not one of the people who comments "useful" and "nice" everywhere.
Thanks, Fixed

https://github.com/iFarbod/GameTextF.../GTFixTest.pwn

New Styles coming in next version,
I'm trying to design the textdraws like the original ones in GTA:SA, Such as :

-TextBox
-Vehicle Name
-Area Name
-Subtitle
-Radio Name (Tuned/UnTuned)

Hope it will be useful.
Reply
#7

Style 7 has been added. (A Good style for any type of text)
Style 8 has been added. (Vehicle Name from single-player)
Style 9 has been added. (Text style after stunt and Subtitles)
Reply
#8

awesome work mate......
Reply
#9

Edit: Nevermind, post can be removed.
Reply
#10

You could make it much easier for future modifications: Make a definition for the array sizes and reset the values with a loop. Then adding styles would be riddiculously easy for you.
Reply
#11

Quote:
Originally Posted by kvann
Посмотреть сообщение
You could make it much easier for future modifications: Make a definition for the array sizes and reset the values with a loop. Then adding styles would be riddiculously easy for you.
Updated. Thanks for notification.
Reply
#12

Nice, I'll use it.
Reply
#13

loved it please post pics of each style
Reply
#14

Style 10, and some screenshots added to first post.
Reply
#15

Good work keep it up
Reply
#16

I like this.
Reply
#17

Quote:
Originally Posted by HolisticDev
Посмотреть сообщение
I like this.
Thanks, Enjoy the new styles.

Example using custom colors:

Style 4 with custom color.



Reply
#18

Style 10 doesn't work for me I cant see the gametext but if i select style 0 then it is ok What's the problem ?>
Reply
#19

useful for me,
thanks, I 'll use it.
+REP
Reply
#20

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
Style 10 doesn't work for me I cant see the gametext but if i select style 0 then it is ok What's the problem ?>
Re-Download it, then use this: (Maybe you missed "_" Underscore)
pawn Код:
GameTextForPlayer_(playerid, "--- Anything", 6000, 10);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)