<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PL/onClientMouseMove?action=history&amp;feed=atom</id>
	<title>PL/onClientMouseMove - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PL/onClientMouseMove?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/onClientMouseMove&amp;action=history"/>
	<updated>2026-04-03T21:04:19Z</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/onClientMouseMove&amp;diff=48494&amp;oldid=prev</id>
		<title>ThePiotrek: Created page with &quot;{{PL/Client event}} __NOTOC__  To zdarzenie jest wywoływane za każdym razem kiedy gracz poruszy myszką na elemencie GUI.  ==Parametry==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int absoluteX, int ab...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/onClientMouseMove&amp;diff=48494&amp;oldid=prev"/>
		<updated>2016-07-22T11:25:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PL/Client event}} __NOTOC__  To zdarzenie jest wywoływane za każdym razem kiedy gracz poruszy myszką na elemencie GUI.  ==Parametry==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int absoluteX, int ab...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PL/Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
To zdarzenie jest wywoływane za każdym razem kiedy gracz poruszy myszką na elemencie GUI.&lt;br /&gt;
&lt;br /&gt;
==Parametry== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''absoluteX''':  pozycja X kursora, w pikselach, liczona od lewej strony ekranu&lt;br /&gt;
* '''absoluteY''':  pozycja Y kursora, w pikselach, liczona od góry ekranu&lt;br /&gt;
==Źródło==&lt;br /&gt;
[[event system#Event source|Źródłem]] tego zdarzenia jest element GUI nad którym została poruszona myszka&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Ten przykład tworzy etykietę która informuje gracza o pozycji jego myszy kiedy poruszy nią nad oknem &amp;quot;TESTOWE OKNO&amp;quot; (element gui)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( ),&lt;br /&gt;
    function ( )&lt;br /&gt;
        guiCreateWindow( 10, 200, 200, 150, &amp;quot;TESTOWE OKNO&amp;quot;, false );&lt;br /&gt;
        textLabel = guiCreateLabel( 0, .9, 1, .1, &amp;quot;&amp;quot;, true );&lt;br /&gt;
        guiLabelSetHorizontalAlign( textLabel, &amp;quot;center&amp;quot; );&lt;br /&gt;
    end&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientMouseMove&amp;quot;, getRootElement( ),&lt;br /&gt;
    function ( x, y )&lt;br /&gt;
        if source then&lt;br /&gt;
            if not guiGetVisible( textLabel ) then guiSetVisible( textLabel, true ) end&lt;br /&gt;
            guiSetText( textLabel, &amp;quot;X: &amp;quot; .. tostring( x ) .. &amp;quot;;  Y: &amp;quot;.. tostring( y ) )&lt;br /&gt;
        else&lt;br /&gt;
            guiSetVisible( textLabel, false );&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[en:onClientMouseMove]]&lt;br /&gt;
&lt;br /&gt;
==Zobacz także==&lt;br /&gt;
===Zdarzenia GUI===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Funkcje zdarzeń po stronie klienta===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>ThePiotrek</name></author>
	</entry>
</feed>