Textdraw helps
#1

I need some help with my textdraw mission

PHP код:
        // Tutorial Mission - Background
        // ??? / pos Y
        
MissionTD[playerid][0] = CreatePlayerTextDraw(playerid,15.199993112.160011"box");
        
PlayerTextDrawLetterSize(playerid,MissionTD[playerid][0], 0.0000007.679999);
        
PlayerTextDrawTextSize(playerid,MissionTD[playerid][0], 205.0000000.000000);
        
PlayerTextDrawAlignment(playerid,MissionTD[playerid][0], 1);
        
PlayerTextDrawColor(playerid,MissionTD[playerid][0], -1);
        
PlayerTextDrawUseBox(playerid,MissionTD[playerid][0], 1);
        
PlayerTextDrawBoxColor(playerid,MissionTD[playerid][0], 170);
        
PlayerTextDrawSetShadow(playerid,MissionTD[playerid][0], 0);
        
PlayerTextDrawBackgroundColor(playeridMissionTD[playerid][0], 255);
        
PlayerTextDrawFont(playeridMissionTD[playerid][0] , 1);
        
PlayerTextDrawSetProportional(playerid,MissionTD[playerid][0], 1);
        
PlayerTextDrawUseBox(playeridMissionTD[playerid][0], 1); // enable box 
        
PlayerTextDrawTextSize(playeridMissionTD[playerid][0], 300.0000000.000000); // "142.000000" is the width of your box, higher it is the more text will fit in one line
        // Tutorial Mission - Text
        
MissionTD[playerid][1] = CreatePlayerTextDraw(playerid,17.5999115.8932"Follow the 'CJ' icon~n~on the radar to get~n~back to the hood.");
        
PlayerTextDrawLetterSize(playeridMissionTD[playerid][1], 0.4280002.279466);
        
PlayerTextDrawAlignment(playeridMissionTD[playerid][1], 1);
        
PlayerTextDrawColor(playeridMissionTD[playerid][1], -1061109505);
        
PlayerTextDrawSetShadow(playeridMissionTD[playerid][1], 0);
        
PlayerTextDrawBackgroundColor(playeridMissionTD[playerid][1], -1061109505);
        
PlayerTextDrawFont(playeridMissionTD[playerid][1], 1);
        
PlayerTextDrawSetProportional(playeridMissionTD[playerid][1], 1); 


Two things
1- The background is so dark, it's bad to user experience, and the letters are too white, it's not like original mission GTA textdraw, where background is light dark and letters is something like white/grey

2- How to set the width and height perfectly?
Texts will have this same size, so how to set like \/

I wanna put it like:


Is anybody can help me?
Reply
#2

I don't like how you are doing this. You should creating a system to handle the creation of mission textdraws.
Reply
#3

u must use colors like this: 0xRRGGBBAA (Red Green Blue Alpha)
so make alpha channel a bit transparent, for example 0x00000077.
PlayerTextDrawBoxColor(playerid,MissionTD[playerid][0], 0x00000077);
Reply
#4

Quote:
Originally Posted by Pottus
Посмотреть сообщение
I don't like how you are doing this. You should creating a system to handle the creation of mission textdraws.
It's just a example, to we have a base, i'll make

Quote:
Originally Posted by Mugala
Посмотреть сообщение
u must use colors like this: 0xRRGGBBAA (Red Green Blue Alpha)
so make alpha channel a bit transparent, for example 0x00000077.
PlayerTextDrawBoxColor(playerid,MissionTD[playerid][0], 0x00000077);
It still looks like the first image, and nothing like the second one
Reply
#5

If you are able to wait a little longer, ****** is adding a few more single player textdraws to fixes.inc.
Reply
#6

Quote:
Originally Posted by Freaksken
Посмотреть сообщение
If you are able to wait a little longer, ****** is adding a few more single player textdraws to fixes.inc.
What are u mean? This is not possible to make that color like the GTA OFF?
Reply
#7

First, you shouldnt use 2 textdraws, its totally unncessary. When I got home I can send colors of my mission notification system
Reply
#8

Quote:
Originally Posted by binnyl
Посмотреть сообщение
What are u mean? This is not possible to make that color like the GTA OFF?
Here's an example of what will be added to fixes.inc. Above is recreated with a textdraw in SA-MP, below is the original from the Single Player. Colours could be improved a bit, but the coordinates are pretty much spot on:



EDIT:
Quote:
Originally Posted by ******
Посмотреть сообщение
Yes… I hadn’t totally forgotten about that…
I'll create an issue, just in case ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)