vanilla-wow-addons – Blame information for rev 1
?pathlinks?
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 | <Script file="Localization.lua"/> |
||
3 | <Script file="XPerl_TeamSpeak.lua"/> |
||
4 | <Script file="XPerl_TeamSpeak.zhTW.lua"/> |
||
5 | |||
6 | <Frame name="XPerl_TeamSpeak_Events"> |
||
7 | <Scripts> |
||
8 | <OnLoad> |
||
9 | this:RegisterEvent("PLAYER_ENTERING_WORLD") |
||
10 | this:RegisterEvent("CHAT_MSG_ADDON") |
||
11 | </OnLoad> |
||
12 | <OnEvent> |
||
13 | XPerl_TeamSpeak_OnEvent(event) |
||
14 | </OnEvent> |
||
15 | </Scripts> |
||
16 | </Frame> |
||
17 | |||
18 | <Frame name="XPerl_TeamSpeak_Frame" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" clampedToScreen="true"> |
||
19 | <Size><AbsDimension x="16" y="16"/></Size> |
||
20 | <Anchors> |
||
21 | <Anchor point="TOPLEFT"> |
||
22 | <Offset> |
||
23 | <AbsDimension x="200" y="-150"/> |
||
24 | </Offset> |
||
25 | </Anchor> |
||
26 | </Anchors> |
||
27 | <Frames> |
||
28 | <Frame name="XPerl_TeamSpeak_DropDown" inherits="UIDropDownMenuTemplate" id="1"> |
||
29 | <Anchors> |
||
30 | <Anchor point="TOPLEFT"/> |
||
31 | </Anchors> |
||
32 | <Scripts> |
||
33 | <OnLoad> |
||
34 | XPerl_Teamspeak_Dropdown_OnLoad() |
||
35 | </OnLoad> |
||
36 | <OnShow> |
||
37 | XPerl_Teamspeak_Dropdown_OnLoad() |
||
38 | </OnShow> |
||
39 | </Scripts> |
||
40 | </Frame> |
||
41 | </Frames> |
||
42 | <Layers> |
||
43 | <Layer level="BACKGROUND"> |
||
44 | <Texture name="XPerl_TeamSpeakIcon" file="Interface\Addons\XPerl_Teamspeak\XPerl_Speakers"> |
||
45 | <TexCoords left="0.75" right="1" top="0" bottom="1"/> |
||
46 | <Size><AbsDimension x="18" y="18"/></Size> |
||
47 | <Anchors> |
||
48 | <Anchor point="TOPLEFT"/> |
||
49 | </Anchors> |
||
50 | </Texture> |
||
51 | </Layer> |
||
52 | <Layer level="OVERLAY"> |
||
53 | <FontString name="XPerl_TeamSpeakText" inherits="GameFontNormalSmall"> |
||
54 | <Size><AbsDimension x="150" y="400"/></Size> |
||
55 | <Anchors> |
||
56 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="XPerl_TeamSpeakIcon"/> |
||
57 | </Anchors> |
||
58 | </FontString> |
||
59 | </Layer> |
||
60 | </Layers> |
||
61 | <Scripts> |
||
62 | <OnLoad> |
||
63 | this:RegisterForDrag("LeftButton") |
||
64 | </OnLoad> |
||
65 | <OnMouseUp> |
||
66 | if (arg1 == "RightButton") then |
||
67 | XPerl_TeamSpeakMenu() |
||
68 | end |
||
69 | </OnMouseUp> |
||
70 | <OnEnter> |
||
71 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT") |
||
72 | GameTooltip:SetText(XPerl_TS_ProductName.." - "..XPerl_TS_Version, 1, 1, 1) |
||
73 | GameTooltip:AddLine(XPERL_TEAMSPEAK_HELP1) |
||
74 | GameTooltip:AddLine(XPERL_TEAMSPEAK_HELP2) |
||
75 | GameTooltip:Show() |
||
76 | </OnEnter> |
||
77 | <OnLeave> |
||
78 | GameTooltip:Hide() |
||
79 | </OnLeave> |
||
80 | <OnShow> |
||
81 | XPerlTeamSpeak.tsFrame = true |
||
82 | </OnShow> |
||
83 | <OnHide> |
||
84 | XPerlTeamSpeak.tsFrame = nil |
||
85 | </OnHide> |
||
86 | <OnDragStart> |
||
87 | this:StartMoving() |
||
88 | </OnDragStart> |
||
89 | <OnDragStop> |
||
90 | this:StopMovingOrSizing() |
||
91 | </OnDragStop> |
||
92 | </Scripts> |
||
93 | </Frame> |
||
94 | </Ui> |