vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 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/..\FrameXML\UI.xsd">
2  
3 <Script file="ui.lua"/>
4  
5 <!-- a button added to each frame, shows the character selection list when clicked -->
6 <Button name="BagnonDBUIDropDownButton" topLevel="true" virtual="true">
7 <Size x="24" y="24"/>
8  
9 <Anchors>
10 <Anchor point="TOPLEFT">
11 <Offset x="6" y="-6"/>
12 </Anchor>
13 </Anchors>
14  
15 <Scripts>
16 <OnClick>
17 if not BagnonDBUICharacterList:IsShown() then
18 BagnonDBUI_ShowCharacterList(this:GetParent())
19 else
20 BagnonDBUICharacterList:Hide()
21 end
22 </OnClick>
23 </Scripts>
24 <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up" setAllPoints="true"/>
25 <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down" setAllPoints="true"/>
26 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" setAllPoints="true"/>
27 </Button>
28  
29 <!-- a player name checkbox -->
30 <CheckButton name="BagnonDBUINameBox" virtual="true">
31 <Size x="140" y="24"/>
32  
33 <ButtonText>
34 <Anchors>
35 <Anchor point="LEFT">
36 <Offset x="24" y="0"/>
37 </Anchor>
38 </Anchors>
39 </ButtonText>
40  
41 <NormalFont font = "GameFontNormalLarge"/>
42 <HighlightFont font="GameFontHighlightLarge"/>
43  
44 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check">
45 <Anchors>
46 <Anchor point="TOPLEFT"/>
47 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
48 <Offset x="24" y="0"/>
49 </Anchor>
50 </Anchors>
51 </CheckedTexture>
52  
53 <Scripts>
54 <OnClick>
55 BagnonDBUI_ChangePlayer(this:GetParent().frame, this:GetText());
56 this:GetParent():Hide();
57 </OnClick>
58 </Scripts>
59 </CheckButton>
60  
61 <!-- the dropdown list of character names that we have data about -->
62 <Frame name="BagnonDBUICharacterList" inherits="BagnonPopupFrame">
63 <Scripts>
64 <OnLoad>
65 this:RegisterEvent("BANKFRAME_OPENED");
66 </OnLoad>
67 <OnEvent>
68 if Banknon then
69 BagnonDBUI_ChangePlayer(Banknon, UnitName("player"));
70 end
71 </OnEvent>
72 <OnHide>
73 this:SetParent(UIParent);
74 </OnHide>
75 </Scripts>
76 </Frame>
77 </Ui>