<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PL/dgsGetChild?action=history&amp;feed=atom</id>
	<title>PL/dgsGetChild - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PL/dgsGetChild?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/dgsGetChild&amp;action=history"/>
	<updated>2026-04-11T22:07:43Z</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/dgsGetChild&amp;diff=63541&amp;oldid=prev</id>
		<title>Szysu: Created page with &quot;__NOTOC__  {{PL/Client function}} Ta funkcja zwraca jedno z dzieci podanego elementu DGS. Element-dziecko DGS jest wybierane według indeksu (0 - pierwsze dziecko, 1 - drugie...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/dgsGetChild&amp;diff=63541&amp;oldid=prev"/>
		<updated>2019-07-29T12:24:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{PL/Client function}} Ta funkcja zwraca jedno z dzieci podanego elementu DGS. Element-dziecko DGS jest wybierane według indeksu (0 - pierwsze dziecko, 1 - drugie...&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 jedno z dzieci podanego elementu DGS. Element-dziecko DGS jest wybierane według indeksu (0 - pierwsze dziecko, 1 - drugie dziecko itd.).&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsGetChild ( element dgsParent, int index ) &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 pobierane będą dzieci.&lt;br /&gt;
*'''index:''' Określa, które dziecko z kolei ma zostać pobrane.&lt;br /&gt;
&lt;br /&gt;
===Wynik===&lt;br /&gt;
Zwraca element-dziecko DGS, jeśli istnieje lub ''false'' jeśli element nie istnieje.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Ten przykład tworzy rodzica oraz cztery dzieci oraz pobiera jedno, losowo wybrane, 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;
-- Pobieranie nowego dziecka co 1 sekundę.&lt;br /&gt;
setTimer(function()&lt;br /&gt;
	local child = DGS:dgsGetChild(parent,math.random(1,4))&lt;br /&gt;
	if isElement(child) then&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>