diff CensusPlayerList.xml @ 23:099a20159243 v4.2d FIN

Merge 4th try
author EmFor
date Sun, 14 Aug 2011 17:27:33 +0200
parents 10c85be19b56
children
line wrap: on
line diff
--- a/CensusPlayerList.xml	Sun Aug 14 15:23:41 2011 +0000
+++ b/CensusPlayerList.xml	Sun Aug 14 17:27:33 2011 +0200
@@ -70,7 +70,7 @@
         </HighlightTexture>
         <Scripts>
 			<OnLoad>
-				this:RegisterForClicks( "RightButtonUp");
+				self:RegisterForClicks( "RightButtonUp");
 			</OnLoad>
             <OnClick>
 				CensusPlus_PlayerButton_OnClick();
@@ -354,21 +354,16 @@
 				CensusPlus_PlayerListOnShow();
 			</OnShow>
             <OnMouseUp>
-                if ( this.isMoving ) then
-                    this:StopMovingOrSizing();
-                    this.isMoving = false;
+                if ( self.isMoving ) then
+                    self:StopMovingOrSizing();
+                    self.isMoving = false;
                 end
             </OnMouseUp>
-            <OnMouseDown>
-                if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
-                    this:StartMoving();
-                    this.isMoving = true;
-                end
-            </OnMouseDown>
+            <OnMouseDown function="CensusPlus_List_OnMouseDown" />
             <OnHide>
-                if ( this.isMoving ) then
-                    this:StopMovingOrSizing();
-                    this.isMoving = false;
+                if ( self.isMoving ) then
+                    self:StopMovingOrSizing();
+                    self.isMoving = false;
                 end
             </OnHide>
         </Scripts>