Mercurial > wow > emfor1
comparison CensusButton.lua @ 23:099a20159243 v4.2d FIN
Merge 4th try
| author | EmFor |
|---|---|
| date | Sun, 14 Aug 2011 17:27:33 +0200 |
| parents | 663f782bd903 |
| children |
comparison
equal
deleted
inserted
replaced
| 22:68032715bc3c | 23:099a20159243 |
|---|---|
| 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 function CensusPlus_Button_OnMouseDown( self, arg1 ) | |
| 117 if ( ( ( not CensusButtonFrame.isLocked ) or ( CensusButtonFrame.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then | |
| 118 CensusButtonFrame:StartMoving(); | |
| 119 CensusButtonFrame.isMoving = true; | |
| 120 end | |
| 121 end | |
| 122 function CensusPlus_Button_OnClick( self, arg1, arg2 ) | |
| 123 if( not CensusButtonFrame.isMoving ) then | |
| 124 CensusPlusButton_OnClick(arg1, arg2); | |
| 125 PlaySound("igMainMenuOptionCheckBoxOn"); | |
| 126 end | |
| 127 end |
