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/ |
2 | C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
||
3 | <Script file="CT_MoveFrames.lua"/> |
||
4 | <Frame name="CT_MoveDragFrame" parent="UIParent" hidden="false"> |
||
5 | <Scripts> |
||
6 | <OnUpdate> |
||
7 | CT_CastBarFrame_Update(); |
||
8 | DurabilityFrame:ClearAllPoints(); |
||
9 | DurabilityFrame:SetPoint("TOPRIGHT", "CT_Durability_Drag", "TOPRIGHT", -10, 0); |
||
10 | </OnUpdate> |
||
11 | </Scripts> |
||
12 | </Frame> |
||
13 | <Button name="CT_CastBarFrame" enableMouse="true" frameStrata="HIGH" movable="true" toplevel="true" parent="UIParent" hidden="false"> |
||
14 | <TitleRegion setAllPoints="true"/> |
||
15 | <Size> |
||
16 | <AbsDimension x="206" y="26"/> |
||
17 | </Size> |
||
18 | <Anchors> |
||
19 | <Anchor point="BOTTOM"> |
||
20 | <Offset> |
||
21 | <AbsDimension x="0" y="135"/> |
||
22 | </Offset> |
||
23 | </Anchor> |
||
24 | </Anchors> |
||
25 | <Scripts> |
||
26 | <OnLoad> |
||
27 | CT_CastBarFrame_OnLoad(); |
||
28 | </OnLoad> |
||
29 | <OnEvent> |
||
30 | CT_CastBarFrame_OnEvent(event); |
||
31 | </OnEvent> |
||
32 | </Scripts> |
||
33 | </Button> |
||
34 | <Button name="CT_QuestWatch_Drag" frameStrata="LOW" parent="UIParent" hidden="false" movable="true" toplevel="true"> |
||
35 | <Size> |
||
36 | <AbsDimension x="16" y="16"/> |
||
37 | </Size> |
||
38 | <Anchors> |
||
39 | <Anchor point="TOPRIGHT"> |
||
40 | <Offset> |
||
41 | <AbsDimension x="-200" y="-425"/> |
||
42 | </Offset> |
||
43 | </Anchor> |
||
44 | </Anchors> |
||
45 | <NormalTexture file="Interface\AddOns\CT_MasterMod\Images\DragButton"/> |
||
46 | <Scripts> |
||
47 | <OnEnter> |
||
48 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
49 | GameTooltip:SetText("Click to drag"); |
||
50 | </OnEnter> |
||
51 | <OnLeave> |
||
52 | GameTooltip:Hide(); |
||
53 | </OnLeave> |
||
54 | <OnMouseDown> |
||
55 | this:StartMoving(); |
||
56 | </OnMouseDown> |
||
57 | <OnMouseUp> |
||
58 | this:StopMovingOrSizing(); |
||
59 | </OnMouseUp> |
||
60 | <OnLoad> |
||
61 | QuestWatchFrame:SetMovable(1); |
||
62 | CT_LinkFrameDrag(QuestWatchFrame, this, "TOPLEFT", "TOPLEFT", 2, -2); |
||
63 | </OnLoad> |
||
64 | </Scripts> |
||
65 | </Button> |
||
66 | <Button name="CT_Durability_Drag" frameStrata="LOW" parent="UIParent" hidden="false" movable="true" toplevel="true"> |
||
67 | <Size> |
||
68 | <AbsDimension x="50" y="80"/> |
||
69 | </Size> |
||
70 | <Anchors> |
||
71 | <Anchor point="TOP"> |
||
72 | <Offset> |
||
73 | <AbsDimension x="0" y="0"/> |
||
74 | </Offset> |
||
75 | </Anchor> |
||
76 | </Anchors> |
||
77 | <Scripts> |
||
78 | <OnEnter> |
||
79 | if ( CT_DurabilityVisible() ) then |
||
80 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
81 | GameTooltip:SetText("Click to drag"); |
||
82 | end |
||
83 | </OnEnter> |
||
84 | <OnLeave> |
||
85 | GameTooltip:Hide(); |
||
86 | </OnLeave> |
||
87 | <OnMouseDown> |
||
88 | if ( CT_DurabilityVisible() ) then |
||
89 | this:StartMoving(); |
||
90 | end |
||
91 | </OnMouseDown> |
||
92 | <OnMouseUp> |
||
93 | this:StopMovingOrSizing(); |
||
94 | </OnMouseUp> |
||
95 | <OnLoad> |
||
96 | CT_LinkFrameDrag(DurabilityFrame, this, "TOPRIGHT", "TOPRIGHT", -10, 0); |
||
97 | </OnLoad> |
||
98 | </Scripts> |
||
99 | </Button> |
||
100 | </Ui> |