<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PL/dgsGetChildren?action=history&amp;feed=atom</id>
	<title>PL/dgsGetChildren - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PL/dgsGetChildren?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/dgsGetChildren&amp;action=history"/>
	<updated>2026-05-20T13:57:12Z</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=PL/dgsGetChildren&amp;diff=63543&amp;oldid=prev</id>
		<title>Szysu: Created page with &quot;__NOTOC__  {{PL/Client function}} Ta funkcja zwraca wszystkie dzieci podanego elementu DGS. ==Składnia==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; element dgsGetChildren ( element dgsPar...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/dgsGetChildren&amp;diff=63543&amp;oldid=prev"/>
		<updated>2019-07-29T12:30:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{PL/Client function}} Ta funkcja zwraca wszystkie dzieci podanego elementu DGS. ==Składnia==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dgsGetChildren ( element dgsPar...&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;
{{PL/Client function}}&lt;br /&gt;
Ta funkcja zwraca wszystkie dzieci podanego elementu DGS.&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsGetChildren ( element dgsParent ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wymagane Argumenty=== &lt;br /&gt;
*'''dgsParent:''' Element DGS, od którego mają zostać pobrane dzieci.&lt;br /&gt;
&lt;br /&gt;
===Wynik===&lt;br /&gt;
Zwraca [[table]] zawierającą wszystkie dzieci elementu DGS, lub ''false'' jeśli element DGS nie posiada dzieci.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Ten przykład tworzy rodzica oraz cztery dzieci oraz pobiera wszystkie z nich.&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;
parent = DGS:dgsCreateWindow(200,100,400,400,&amp;quot;DGS Parent Window&amp;quot;,false)	-- Stworzenie rodzica.&lt;br /&gt;
child1 = DGS:dgsCreateLabel(10,0,380,20,&amp;quot;&amp;quot;,false,parent)	--Stworzenie 1 dziecka.&lt;br /&gt;
child2 = DGS:dgsCreateLabel(10,20,380,20,&amp;quot;&amp;quot;,false,parent)	--Stworzenie 2 dziecka.&lt;br /&gt;
child3 = DGS:dgsCreateLabel(10,40,380,20,&amp;quot;&amp;quot;,false,parent)	--Stworzenie 3 dziecka.&lt;br /&gt;
child4 = DGS:dgsCreateLabel(10,60,380,20,&amp;quot;&amp;quot;,false,parent)	--Stworzenie 4 dziecka.&lt;br /&gt;
&lt;br /&gt;
-- Pobranie wszystkich dzieci elementu DGS.&lt;br /&gt;
setTimer(function()&lt;br /&gt;
	local children = DGS:dgsGetChildren(parent)&lt;br /&gt;
	for id,child in ipairs(children) do&lt;br /&gt;
		DGS:dgsSetText(child,math.random(1,100))&lt;br /&gt;
	end&lt;br /&gt;
end,1000,0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{DGSFUNCTIONS_PL}}&lt;/div&gt;</summary>
		<author><name>Szysu</name></author>
	</entry>
</feed>