<?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%3AgetTextScreenWidth</id>
	<title>Ui::getTextScreenWidth - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AgetTextScreenWidth"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::getTextScreenWidth&amp;action=history"/>
	<updated>2026-07-24T19:44:39Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Ui::getTextScreenWidth&amp;diff=15172&amp;oldid=prev</id>
		<title>imported&gt;Unknown в 21:37, 2 октября 2018</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::getTextScreenWidth&amp;diff=15172&amp;oldid=prev"/>
		<updated>2018-10-02T21:37:45Z</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;__TOC__&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.getTextScreenWidth(p0);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p0: &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Boolean&amp;lt;/font&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;float&amp;lt;/font&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
const getTextWidth = (text, font, scale) =&amp;gt; {&lt;br /&gt;
    mp.game.ui.setTextEntryForWidth(&amp;quot;STRING&amp;quot;);&lt;br /&gt;
    mp.game.ui.addTextComponentSubstringPlayerName(text);&lt;br /&gt;
    mp.game.ui.setTextFont(font);&lt;br /&gt;
    mp.game.ui.setTextScale(scale * 1.25, scale);&lt;br /&gt;
    return mp.game.ui.getTextScreenWidth(true);&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&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;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>