multitheftauto/mtasa-blue

Make CEGUI text render hex color parser

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.

Make the GUI parse text with like colors with a hash or with
result should be
Image

Describe the solution you'd like

Go to file
under F:\mta\mtasa-blue\vendor\cegui-0.4.0-custom\src\CEGUIFont.cpp

Under this function gui render the text color

void Font::drawTextLine(const String& text, const Vector3& position, const Rect& clip_rect, const ColourRect& colours, float x_scale, float y_scale) const { ....

this function draw the color for each char img->draw(cur_pos, sz, clip_rect, colours);
pass a new color by using current_colours = ColourRect(colour(rf, gf, bf, 1.0f));
img->draw(cur_pos, sz, clip_rect, current_colours );

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.