<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Scorpyo</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Scorpyo"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Scorpyo"/>
	<updated>2026-04-23T02:55:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsBringToFront&amp;diff=55215</id>
		<title>DgsBringToFront</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsBringToFront&amp;diff=55215"/>
		<updated>2018-06-08T03:45:49Z</updated>

		<summary type="html">&lt;p&gt;Scorpyo: Created page with &amp;quot;This function sets the font of a dgs element to be used when drawing text.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool guiBringToFront ( element dgsElement ) &amp;lt;/syntaxhighli...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function sets the font of a dgs element to be used when drawing text.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiBringToFront ( element dgsElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsElement:''' the DGS element that you want to move to the front.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a dgs window and brings it on top.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local window = dgsCreateWindow ( 0.4, 0.4, 0.3, 0.3, &amp;quot;My dummy window&amp;quot;, true )&lt;br /&gt;
dgsBringToFront ( window )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scorpyo</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateFont&amp;diff=55212</id>
		<title>DgsCreateFont</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateFont&amp;diff=55212"/>
		<updated>2018-06-08T03:42:50Z</updated>

		<summary type="html">&lt;p&gt;Scorpyo: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function creates a dgs font element that can be used in [dgsSetFont]https://wiki.multitheftauto.com/wiki/DgsSetFont. Successful font creation is not guaranteed, and may fail due to hardware or memory limitations.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsCreateFont ( string filepath[, int size=9 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''filepath:''' the name of the file containing the font&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''size:''' size of the font&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a DGS font element if successful, ''false'' if invalid arguments were passed to the function, or there is insufficient resources available.&lt;br /&gt;
&lt;br /&gt;
'''You should always check to see if this function has returned false.'''&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Display a dgs label&lt;br /&gt;
local myLabel = dgsCreateLabel( 100, 300, 400, 50, &amp;quot;DGS label&amp;quot;, false )&lt;br /&gt;
&lt;br /&gt;
-- Use 'toggle' command to switch custom font on and off&lt;br /&gt;
addCommandHandler( &amp;quot;toggle&amp;quot;,&lt;br /&gt;
    function()&lt;br /&gt;
        if not myFont then&lt;br /&gt;
            myFont = dgsCreateFont( &amp;quot;segoeui.ttf&amp;quot;, 20 )  -- Create DGS custom font&lt;br /&gt;
            dgsSetFont( myLabel, myFont )                -- Apply font to a widget&lt;br /&gt;
        else        &lt;br /&gt;
            destroyElement( myFont )                     -- Destroy custom font&lt;br /&gt;
            myFont = nil&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scorpyo</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateFont&amp;diff=55211</id>
		<title>DgsCreateFont</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateFont&amp;diff=55211"/>
		<updated>2018-06-08T03:42:15Z</updated>

		<summary type="html">&lt;p&gt;Scorpyo: Created page with &amp;quot;This function creates a dgs font element that can be used in [dgsSetFont]https://wiki.multitheftauto.com/wiki/DgsSetFont. Successful font creation is not guaranteed, and may f...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function creates a dgs font element that can be used in [dgsSetFont]https://wiki.multitheftauto.com/wiki/DgsSetFont. Successful font creation is not guaranteed, and may fail due to hardware or memory limitations.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsCreateFont ( string filepath[, int size=9 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''filepath:''' the name of the file containing the font&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''size:''' size of the font&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[DGS font]] element if successful, ''false'' if invalid arguments were passed to the function, or there is insufficient resources available.&lt;br /&gt;
&lt;br /&gt;
'''You should always check to see if this function has returned false.'''&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Display a dgs label&lt;br /&gt;
local myLabel = dgsCreateLabel( 100, 300, 400, 50, &amp;quot;DGS label&amp;quot;, false )&lt;br /&gt;
&lt;br /&gt;
-- Use 'toggle' command to switch custom font on and off&lt;br /&gt;
addCommandHandler( &amp;quot;toggle&amp;quot;,&lt;br /&gt;
    function()&lt;br /&gt;
        if not myFont then&lt;br /&gt;
            myFont = dgsCreateFont( &amp;quot;segoeui.ttf&amp;quot;, 20 )  -- Create DGS custom font&lt;br /&gt;
            dgsSetFont( myLabel, myFont )                -- Apply font to a widget&lt;br /&gt;
        else        &lt;br /&gt;
            destroyElement( myFont )                     -- Destroy custom font&lt;br /&gt;
            myFont = nil&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scorpyo</name></author>
	</entry>
</feed>