Mercurial > wow > emfor1
comparison CensusButton.xml @ 0:edfa01041183
Census+ Mod :
- TLJ guild search
- searchstart at Level 1 for community events
| author | EmFor <EmFor.hg@mroe.de> |
|---|---|
| date | Tue, 30 Mar 2010 13:42:05 +0200 |
| parents | |
| children | 10c85be19b56 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:edfa01041183 |
|---|---|
| 1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> | |
| 2 <Script file="CensusButton.lua"/> | |
| 3 <Frame name="CensusButtonFrame" parent="UIParent" hidden="true" enableMouse="true" toplevel="true" movable="true"> | |
| 4 <Size> | |
| 5 <AbsDimension x="32" y="32"/> | |
| 6 </Size> | |
| 7 <Anchors> | |
| 8 <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT"> | |
| 9 <Offset> | |
| 10 <AbsDimension x="-10" y="0"/> | |
| 11 </Offset> | |
| 12 </Anchor> | |
| 13 </Anchors> | |
| 14 <Frames> | |
| 15 <Button name="CensusButton"> | |
| 16 <Size> | |
| 17 <AbsDimension x="32" y="32"/> | |
| 18 </Size> | |
| 19 <Anchors> | |
| 20 <Anchor point="TOPLEFT"> | |
| 21 <Offset> | |
| 22 <AbsDimension x="0" y="0"/> | |
| 23 </Offset> | |
| 24 </Anchor> | |
| 25 </Anchors> | |
| 26 <Frames> | |
| 27 <Frame name="CP_ButtonDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true"> | |
| 28 <Anchors> | |
| 29 <Anchor point="TOPLEFT"> | |
| 30 <Offset> | |
| 31 <AbsDimension x="-15" y="20"/> | |
| 32 </Offset> | |
| 33 </Anchor> | |
| 34 </Anchors> | |
| 35 <Scripts> | |
| 36 <OnLoad> | |
| 37 UIDropDownMenu_Initialize(CP_ButtonDropDown, CensusPlus_ButtonDropDown_Initialize, "MENU" ); | |
| 38 </OnLoad> | |
| 39 </Scripts> | |
| 40 </Frame> | |
| 41 </Frames> | |
| 42 <NormalTexture file="Interface\AddOns\CensusPlus\Skin\CensusButton-Up"/> | |
| 43 <PushedTexture file="Interface\AddOns\CensusPlus\Skin\CensusButton-Down"/> | |
| 44 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> | |
| 45 <Scripts> | |
| 46 <OnLoad> | |
| 47 this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); | |
| 48 </OnLoad> | |
| 49 <OnClick> | |
| 50 if( not CensusButtonFrame.isMoving ) then | |
| 51 CensusPlusButton_OnClick(arg1, arg2); | |
| 52 PlaySound("igMainMenuOptionCheckBoxOn"); | |
| 53 end | |
| 54 </OnClick> | |
| 55 <OnMouseUp> | |
| 56 if ( CensusButtonFrame.isMoving ) then | |
| 57 CensusButtonFrame:StopMovingOrSizing(); | |
| 58 CensusButtonFrame.isMoving = false; | |
| 59 end | |
| 60 </OnMouseUp> | |
| 61 <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> | |
| 68 GameTooltip_SetDefaultAnchor(GameTooltip, UIParent); | |
| 69 <!-- CENSUS_BUTTON_TOOLTIP="test"; --> | |
| 70 GameTooltip:SetText(CENSUS_BUTTON_TOOLTIP); | |
| 71 </OnEnter> | |
| 72 <OnLeave> | |
| 73 GameTooltip:Hide(); | |
| 74 </OnLeave> | |
| 75 </Scripts> | |
| 76 </Button> | |
| 77 </Frames> | |
| 78 <Scripts> | |
| 79 <OnLoad> | |
| 80 this:RegisterEvent("VARIABLES_LOADED"); | |
| 81 </OnLoad> | |
| 82 <OnEvent> | |
| 83 CensusButton_Init(); | |
| 84 </OnEvent> | |
| 85 <OnHide> | |
| 86 if ( this.isMoving ) then | |
| 87 this:StopMovingOrSizing(); | |
| 88 this.isMoving = false; | |
| 89 end | |
| 90 </OnHide> | |
| 91 </Scripts> | |
| 92 </Frame> | |
| 93 </Ui> |
