View Issue Details

IDProjectCategoryView StatusLast Update
0005833Multi Theft Auto : San AndreasClientpublic2012-10-22 10:10
ReporterGhOsT[X] Assigned Toccw  
Status resolvedResolutionfixed 
Target Version1.3.1Fixed in Version1.3.1 
Summary0005833: dxDrawText [New parameter] - colorCoded.

As outputChatBox has one colorcoded parameter, dxDrawText should have one too.

With dxDrawText is possible to create multicolored text, but you should need to use atleast two times the function.

With a colorCoded parameter, would be much easier.

The format should be equal to the outputChatBox - "#FF0000Colored #00FF00Text".

bool dxDrawText ( string text, int left, int top [, int right=left, int bottom=top, int color=white, float scale=1, string font="default",
string alignX="left", string alignY="top", bool clip=false, bool wordBreak=false, bool postGUI, bool colorCoded = false] )

TagsNo tags attached.



2011-01-25 04:08

viewer   ~~0012738

Agree, would be good addition to MTA.


2011-01-25 09:20

viewer   ~~0012741

Last edited: 2011-01-25 09:20


now it's can be done ONLY by breaking text to color pieces and drawing them as different texts


2011-01-25 09:33

manager   ~~0012742

You can do this via scripting.


2011-01-28 09:43

viewer   ~~0012799


Why closed? Put atleast in low priority, that's very needed...

For example, if you wanna draw a colored nick tag, you would need to calculate nick string size, calculate how much colored parts, create one dxDrawText for each colored part, positioning it right, preventing one text to become above the other.

And this is a bit wasting of time and very heavy.


2011-01-30 06:30

viewer   ~~0012823

Last edited: 2011-01-30 06:33

it's really can be done by DX functions. By the way, you can script some new features to draw text with bold font pieces.. like this "Hi, [b]player[/b], read these rules...". Or ability to change font size of some text pieces "Hi, [big]player[/big], read these rules...". Standard system can't do that, but you can script these new features by yourself. With these features you can draw to players really formatted texts. Color codes it's just small piece of text formatting.


2012-10-19 17:14

updater   ~~0017805

Last edited: 2012-10-19 17:20

Issue History

Date Modified Username Field Change