<?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=ShuffleGTAO</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=ShuffleGTAO"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/ShuffleGTAO"/>
	<updated>2026-05-11T22:32:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateEffect3D&amp;diff=67307</id>
		<title>DgsCreateEffect3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateEffect3D&amp;diff=67307"/>
		<updated>2020-08-24T17:29:29Z</updated>

		<summary type="html">&lt;p&gt;ShuffleGTAO: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
&lt;br /&gt;
This function creates a 3d effect for scroll pane.&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 dgsCreateEffect3D( float rotateFactor )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Image:DGS_Effect_3D_Plugin.gif|300px|thumb|Example Effect 3D Plugin (Contributor: Allerek)]]&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''rotateFactor: ''' A float of the rotation factor when moving mouse (Setting to 0 makes the effect 3d static. Setting to 180 makes the effect 3d turn 180 degrees when mouse moves to the left edge of the scroll pane).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxeffect3d element (DGS Plugin Type)[ shader (Element Type) ] 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 --get exported functions from dgs&lt;br /&gt;
&lt;br /&gt;
local effect3d = DGS:dgsCreateEffect3D(20)  --Create the 3D effect plugin&lt;br /&gt;
local sp = DGS:dgsCreateScrollPane(300,300,500,500,false)  --Create a scroll pane&lt;br /&gt;
local img = DGS:dgsCreateImage(0,0,1,1,_,true,sp,tocolor(0,0,0,180))  --Create an image&lt;br /&gt;
DGS:dgsEffect3DApplyToScrollPane(effect3d,sp)  --Apply the plugin to scroll pane&lt;br /&gt;
edit1 = DGS:dgsCreateEdit(0,0,200,100,&amp;quot;DGS 3D Effect Edit 1&amp;quot;,false,img)&lt;br /&gt;
edit2 = DGS:dgsCreateEdit(0,400,200,50,&amp;quot;DGS 3D Effect Edit 2&amp;quot;,false,img)&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>ShuffleGTAO</name></author>
	</entry>
</feed>