├── .gitattributes ├── CensusButton.lua ├── CensusButton.xml ├── CensusPlayerList.lua ├── CensusPlayerList.xml ├── CensusPlus.lua ├── CensusPlus.xml ├── CensusPlusPVP.lua ├── CensusPlusProfiler.lua ├── CensusPlusTurtle.toc ├── GPL.txt ├── Preview.png ├── README.md ├── Skin ├── CensusButton-Down.tga ├── CensusButton-Paused.tga ├── CensusButton-Running.tga ├── CensusButton-Up.tga ├── CensusPlus_10.tga ├── CensusPlus_11.tga ├── CensusPlus_12.tga ├── CensusPlus_13.tga ├── CensusPlus_14.tga ├── CensusPlus_15.tga ├── CensusPlus_16.tga ├── CensusPlus_17.tga ├── CensusPlus_18.tga ├── CensusPlus_20.tga ├── CensusPlus_21.tga ├── CensusPlus_22.tga ├── CensusPlus_23.tga ├── CensusPlus_24.tga ├── CensusPlus_25.tga ├── CensusPlus_26.tga ├── CensusPlus_27.tga ├── CensusPlus_28.tga ├── CensusPlus_29.tga ├── CensusPlus_Bar.tga ├── CensusPlus_Icon.tga ├── CensusPlus_LevelBar.tga ├── CensusPlus_Mini.tga ├── CensusPlus_Unknown.tga ├── CensusPlus_Window_BottomRight.tga ├── CensusPlus_Window_Left.tga ├── CensusPlus_Window_Mid.tga └── CensusPlus_Window_TopRight.tga ├── Sounds └── CensusComplete.ogg ├── UpdateUI.xml ├── libs ├── AceLibrary │ └── AceLibrary.lua ├── AceLocale-2.2 │ └── AceLocale-2.2.lua └── Babble-Class-2.2 │ └── Babble-Class-2.2.lua ├── localization.de.lua ├── localization.fr.lua ├── localization.lua └── readme.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /CensusButton.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | CensusPlus for World of Warcraft(tm). 3 | 4 | Copyright 2005 - 2006 Cooper Sellers and WarcraftRealms.com 5 | 6 | License: 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License 9 | as published by the Free Software Foundation; either version 2 10 | of the License, or (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program(see GLP.txt); if not, write to the Free Software 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 | ]] 21 | 22 | 23 | local init = false; 24 | 25 | function CensusButton_OnClick() 26 | CensusPlus_Toggle(); 27 | end 28 | 29 | function CensusButton_Init() 30 | if(CensusPlus_Database["Info"]["CensusButtonShown"] == 1 ) then 31 | CensusButtonFrame:Show(); 32 | else 33 | CensusButtonFrame:Hide(); 34 | end 35 | 36 | init = true; 37 | end 38 | 39 | function CensusButton_Toggle() 40 | if(CensusButtonFrame:IsVisible()) then 41 | CensusButtonFrame:Hide(); 42 | CensusPlus_Database["Info"]["CensusButtonShown"] = false; 43 | else 44 | CensusButtonFrame:Show(); 45 | CensusPlus_Database["Info"]["CensusButtonShown"] = true; 46 | end 47 | end 48 | 49 | function CensusButton_UpdatePosition() 50 | CensusButtonFrame:SetPoint( 51 | "TOPLEFT", 52 | "Minimap", 53 | "TOPLEFT", 54 | 54 - (78 * cos(CensusPlus_Database["Info"]["CensusButtonPosition"])), 55 | (78 * sin(CensusPlus_Database["Info"]["CensusButtonPosition"])) - 55 56 | ); 57 | end 58 | 59 | local CensusUpdateFrame = CreateFrame("FRAME", "CensusUpdateFrame"); 60 | CensusUpdateFrame:SetScript('OnUpdate', function() 61 | if( init ) then 62 | CensusPlus_OnUpdate(); 63 | end 64 | end) 65 | 66 | function CensusButton_OnUpdate() 67 | end 68 | 69 | function CensusPlusButton_OnClick( arg1 ) 70 | if ( arg1 == "LeftButton" ) then 71 | CensusButton_OnClick(); 72 | else 73 | ToggleDropDownMenu( 1, nil, CP_ButtonDropDown, "CensusButtonFrame", 20, 20 ); 74 | end 75 | 76 | end 77 | 78 | function CensusPlus_ButtonDropDown_Initialize() 79 | 80 | local info; 81 | 82 | if (g_IsCensusPlusInProgress == true) then 83 | if( g_CensusPlusManuallyPaused == true ) then 84 | info = { 85 | text = CENSUSPlus_UNPAUSE; 86 | func = CensusPlus_Take_OnClick; 87 | }; 88 | else 89 | info = { 90 | text = CENSUSPlus_PAUSE; 91 | func = CensusPlus_Take_OnClick; 92 | }; 93 | end 94 | else 95 | info = { 96 | text = CENSUSPlus_TAKE; 97 | func = CensusPlus_Take_OnClick; 98 | }; 99 | end 100 | UIDropDownMenu_AddButton(info); 101 | 102 | info = { 103 | text = CENSUSPlus_STOP; 104 | func = CensusPlus_StopCensus; 105 | }; 106 | UIDropDownMenu_AddButton(info); 107 | 108 | info = { 109 | text = CENSUSPlus_CANCEL; 110 | func = CloseDropDownMenus; 111 | }; 112 | UIDropDownMenu_AddButton(info); 113 | 114 | end 115 | -------------------------------------------------------------------------------- /CensusButton.xml: -------------------------------------------------------------------------------- 1 | 2 |