<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsSetCenter?action=history&amp;feed=atom</id>
	<title>DgsSetCenter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsSetCenter?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSetCenter&amp;action=history"/>
	<updated>2026-04-07T09:24:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSetCenter&amp;diff=54859&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;__NOTOC__  {{Client function}} This function allow us to set a dgs element always in center (Default Layer).  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsSetCenter ( elem...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSetCenter&amp;diff=54859&amp;oldid=prev"/>
		<updated>2018-05-01T02:53:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} This function allow us to set a dgs element always in center (Default Layer).  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsSetCenter ( elem...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allow us to set a dgs element always in center (Default Layer).&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 dgsSetCenter ( element dgsElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DGSRenderLayer.png|300px|thumb|DGSRenderLayer]]&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsElement:''' The DGS element to set.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if succeed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
window1 = DGS:dgsCreateWindow(400,100,200,200,&amp;quot;DGS Window 1&amp;quot;,false)	--Create window1&lt;br /&gt;
window2 = DGS:dgsCreateWindow(400,100,200,200,&amp;quot;DGS Window 2&amp;quot;,false)	--Create window2&lt;br /&gt;
DGS:dgsSetCenter(window1) --This won't change anything, because all dgs elements created in the Center Layer.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>