Mercurial > wow > emfor1
comparison CensusButton.xml @ 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 |
|---|---|
| 42 <NormalTexture file="Interface\AddOns\CensusPlus\Skin\CensusButton-Up"/> | 42 <NormalTexture file="Interface\AddOns\CensusPlus\Skin\CensusButton-Up"/> |
| 43 <PushedTexture file="Interface\AddOns\CensusPlus\Skin\CensusButton-Down"/> | 43 <PushedTexture file="Interface\AddOns\CensusPlus\Skin\CensusButton-Down"/> |
| 44 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> | 44 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> |
| 45 <Scripts> | 45 <Scripts> |
| 46 <OnLoad> | 46 <OnLoad> |
| 47 this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); | 47 self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
| 48 </OnLoad> | 48 </OnLoad> |
| 49 <OnClick> | 49 <OnClick function="CensusPlus_Button_OnClick" /> |
| 50 if( not CensusButtonFrame.isMoving ) then | 50 <OnMouseUp> |
| 51 CensusPlusButton_OnClick(arg1, arg2); | |
| 52 PlaySound("igMainMenuOptionCheckBoxOn"); | |
| 53 end | |
| 54 </OnClick> | |
| 55 <OnMouseUp> | |
| 56 if ( CensusButtonFrame.isMoving ) then | 51 if ( CensusButtonFrame.isMoving ) then |
| 57 CensusButtonFrame:StopMovingOrSizing(); | 52 CensusButtonFrame:StopMovingOrSizing(); |
| 58 CensusButtonFrame.isMoving = false; | 53 CensusButtonFrame.isMoving = false; |
| 59 end | 54 end |
| 60 </OnMouseUp> | 55 </OnMouseUp> |
| 61 <OnMouseDown> | 56 <OnMouseDown function="CensusPlus_Button_OnMouseDown" /> |
| 62 if ( ( ( not CensusButtonFrame.isLocked ) or ( CensusButtonFrame.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then | |
| 63 CensusButtonFrame:StartMoving(); | |
| 64 CensusButtonFrame.isMoving = true; | |
| 65 end | |
| 66 </OnMouseDown> | |
| 67 <OnEnter> | 57 <OnEnter> |
| 68 GameTooltip_SetDefaultAnchor(GameTooltip, UIParent); | 58 GameTooltip_SetDefaultAnchor(GameTooltip, UIParent); |
| 69 <!-- CENSUS_BUTTON_TOOLTIP="test"; --> | 59 <!-- CENSUS_BUTTON_TOOLTIP="test"; --> |
| 70 GameTooltip:SetText(CENSUS_BUTTON_TOOLTIP); | 60 GameTooltip:SetText(CENSUS_BUTTON_TOOLTIP); |
| 71 </OnEnter> | 61 </OnEnter> |
| 75 </Scripts> | 65 </Scripts> |
| 76 </Button> | 66 </Button> |
| 77 </Frames> | 67 </Frames> |
| 78 <Scripts> | 68 <Scripts> |
| 79 <OnLoad> | 69 <OnLoad> |
| 80 this:RegisterEvent("VARIABLES_LOADED"); | 70 self:RegisterEvent("VARIABLES_LOADED"); |
| 81 </OnLoad> | 71 </OnLoad> |
| 82 <OnEvent> | 72 <OnEvent> |
| 83 CensusButton_Init(); | 73 CensusButton_Init(); |
| 84 </OnEvent> | 74 </OnEvent> |
| 85 <OnHide> | 75 <OnHide> |
| 86 if ( this.isMoving ) then | 76 if ( self.isMoving ) then |
| 87 this:StopMovingOrSizing(); | 77 self:StopMovingOrSizing(); |
| 88 this.isMoving = false; | 78 self.isMoving = false; |
| 89 end | 79 end |
| 90 </OnHide> | 80 </OnHide> |
| 91 </Scripts> | 81 </Scripts> |
| 92 </Frame> | 82 </Frame> |
| 93 </Ui> | 83 </Ui> |
