comparison CensusButton.lua @ 6:10c85be19b56

rebase on CensusPlus-40000-4.3.2.zip; added worgen added 81 - 85
author EmFor
date Fri, 10 Dec 2010 15:47:23 +0100
parents edfa01041183
children 663f782bd903
comparison
equal deleted inserted replaced
5:39067cee234d 6:10c85be19b56
60 if( init ) then 60 if( init ) then
61 CensusPlus_OnUpdate(); 61 CensusPlus_OnUpdate();
62 end 62 end
63 end 63 end
64 64
65 function CensusPlusButton_OnClick( arg1, arg2 ) 65 function CensusPlusButton_OnClick( arg1 )
66 if ( arg1 == "LeftButton" ) then 66 if ( arg1 == "LeftButton" ) then
67 CensusButton_OnClick(); 67 CensusButton_OnClick();
68 else 68 else
69 ToggleDropDownMenu( 1, nil, CP_ButtonDropDown, "CensusButtonFrame", 20, 20 ); 69 ToggleDropDownMenu( 1, nil, CP_ButtonDropDown, "CensusButtonFrame", 20, 20 );
70 end 70 end
71 71
72 end 72 end
73 73
74 function CensusPlus_ButtonDropDown_Initialize() 74 function CensusPlus_ButtonDropDown_Initialize()
111 111
112 112
113 function CensusPlus_CloseDropDown() 113 function CensusPlus_CloseDropDown()
114 CloseDropDownMenus(); 114 CloseDropDownMenus();
115 end 115 end
116
117 function CensusPlus_Button_OnMouseDown( self, arg1 )
118 if ( ( ( not CensusButtonFrame.isLocked ) or ( CensusButtonFrame.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
119 CensusButtonFrame:StartMoving();
120 CensusButtonFrame.isMoving = true;
121 end
122 end
123
124 function CensusPlus_Button_OnClick( self, arg1, arg2 )
125 if( not CensusButtonFrame.isMoving ) then
126 CensusPlusButton_OnClick(arg1, arg2);
127 PlaySound("igMainMenuOptionCheckBoxOn");
128 end
129 end