<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AaddTextComponentSubstringPlayerName</id>
	<title>Ui::addTextComponentSubstringPlayerName - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AaddTextComponentSubstringPlayerName"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;action=history"/>
	<updated>2026-07-24T19:28:47Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=14997&amp;oldid=prev</id>
		<title>imported&gt;Brophy в 16:30, 12 февраля 2018</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=14997&amp;oldid=prev"/>
		<updated>2018-02-12T16:30:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&amp;#039;STRING&amp;#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &amp;#039;~r~Red test&amp;#039;;&amp;lt;br&amp;gt;string white_and_yellow = &amp;#039;~w~White and ~y~yellow&amp;#039;;&amp;lt;br&amp;gt;string text_with_double_line = &amp;#039;First line.~n~Second line&amp;#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You can also call fonts which are defined in: common/data/ui/&amp;#039;&amp;#039;&amp;#039;[[Fontmap.xml|fontmap.xml]]&amp;#039;&amp;#039;&amp;#039;, along with &amp;#039;html&amp;#039; style colours and font sizes, see example below&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; String&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.ui.addTextComponentSubstringPlayerName(`&amp;lt;font face=&amp;quot;ChaletComprime-CologneSixty&amp;quot; size=&amp;quot;16&amp;quot; color=&amp;quot;rgb(123,213,123)&amp;quot;&amp;gt;font&amp;lt;/font&amp;gt; renders fine`);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Ui_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:UI API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Brophy</name></author>
	</entry>
</feed>